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