blob: 15f62b9cd60148ce325b433b9cdf36b29c6e87f0 [file] [log] [blame]
// IMPORTANT: keep this file in sync with sw.js
import {cleanUpOptions} from './common/optionsUtils.js'
// When the extension gets updated, set new options to their default value.
chrome.runtime.onInstalled.addListener(function(details) {
if (details.reason == 'install' || details.reason == 'update') {
chrome.storage.sync.get(null, function(options) {
cleanUpOptions(options, false);
});
}
});
chrome.browserAction.onClicked.addListener(function() {
chrome.runtime.openOptionsPage();
});