blob: c214068e501c11ce3f5f758f0a0992b71763bad0 [file] [log] [blame]
avm999633a4946d2021-02-05 21:27:12 +01001// IMPORTANT: keep this file in sync with background.js
2
avm99963bbc88c62020-12-25 03:44:41 +01003importScripts('common/common.js')
4
5// When the extension gets updated, set new options to their default value.
6chrome.runtime.onInstalled.addListener(details => {
7 if (details.reason == 'install' || details.reason == 'update') {
8 chrome.storage.sync.get(null, options => {
9 cleanUpOptions(options);
10 });
11 }
12});
13
14chrome.action.onClicked.addListener(_ => {
15 chrome.runtime.openOptionsPage();
16});