Skip to content

Commit

Permalink
Added notif on popup master toggle ↞ [auto-sync from https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 5, 2024
1 parent 3441366 commit 94f30ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chrome/extension/popup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
masterToggle.onchange = () => {
settings.save('extensionDisabled', !config.extensionDisabled)
Object.keys(sync).forEach(key => sync[key]()) // sync fade + storage to UI
notify(`${chrome.i18n.getMessage('appName')} 🧩 ${chrome.i18n.getMessage(`state_${
config.extensionDisabled ? 'off' : 'on' }`).toUpperCase()}`)
}

// Create CHILD menu entries on matched pages
Expand Down
2 changes: 2 additions & 0 deletions firefox/extension/popup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
masterToggle.onchange = () => {
settings.save('extensionDisabled', !config.extensionDisabled)
Object.keys(sync).forEach(key => sync[key]()) // sync fade + storage to UI
notify(`${chrome.i18n.getMessage('appName')} 🧩 ${chrome.i18n.getMessage(`state_${
config.extensionDisabled ? 'off' : 'on' }`).toUpperCase()}`)
}

// Create CHILD menu entries on matched pages
Expand Down

0 comments on commit 94f30ca

Please sign in to comment.