blob: c90c5a6de5f6ad4c6753d482e7dd6b16c657c315 [file] [log] [blame]
importScripts('common/common.js')
// When the extension gets updated, set new options to their default value.
chrome.runtime.onInstalled.addListener(details => {
if (details.reason == 'install' || details.reason == 'update') {
chrome.storage.sync.get(null, options => {
cleanUpOptions(options);
});
}
});
chrome.action.onClicked.addListener(_ => {
chrome.runtime.openOptionsPage();
});