Skip to content

Commit

Permalink
chore: 默认不开启 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodeee authored Sep 16, 2023
1 parent 526722a commit a3a0e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ chrome.runtime.onInstalled.addListener(async () => {
const template = await getStorageLocal(MACACA_RECORDER_TEMPLATE.CURRENT_TEMPLATE);
actions.template = template as string || MACACA_RECORDER_TEMPLATE.MACACA;

await setStorageLocal({ [MACACA_RECORDER_ENABLED]: true });
await setStorageLocal({ [MACACA_RECORDER_ENABLED]: false });

chrome.action.setBadgeText({ text: 'ON' });
chrome.action.setBadgeText({ text: 'OFF' });
});

/**
Expand Down
2 changes: 1 addition & 1 deletion src/content/content-scripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let inputTimer: any = null;
let inputActionId: number = null;

// 插件开关
let enabled = true;
let enabled = false;

// 鼠标移动监听开关
let mousemoveEnabled = true;
Expand Down

0 comments on commit a3a0e9a

Please sign in to comment.