mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
Big changes here. - I've moved all of the scripts to individual files in the `scripts` folder. - I've updated all the code to ES7. - The extension stores the state in browser storage now, and it persists. - The extension has a default state of on.
5 lines
171 B
JavaScript
5 lines
171 B
JavaScript
chrome.browserAction.onClicked.addListener(() => {
|
|
chrome.storage.local.get('enabled', ({ enabled }) => {
|
|
chrome.storage.local.set({ enabled: !enabled });
|
|
});
|
|
});
|