blob: 688aaa16c71fb6ddab628264de59e5e050ead5fe [file] [log] [blame]
avm999634c1a6792020-08-31 21:30:42 +02001// When the extension gets updated, set new options to their default value.
avm99963122dc9b2019-03-30 18:44:18 +01002chrome.runtime.onInstalled.addListener(function(details) {
avm99963b69eb3d2020-08-20 02:03:44 +02003 if (details.reason == 'install' || details.reason == 'update') {
avm999634c1a6792020-08-31 21:30:42 +02004 chrome.storage.sync.get(null, function(options) {
5 cleanUpOptions(options);
6 });
avm99963122dc9b2019-03-30 18:44:18 +01007 }
avm99963cbea3142019-03-28 00:48:15 +01008});
avm999631a1d2b72020-08-20 03:15:20 +02009
10chrome.browserAction.onClicked.addListener(function() {
11 chrome.runtime.openOptionsPage();
12});