1
Fork 0
webextension-storage/tests/background.ts

10 lines
253 B
TypeScript

import browser from "webextension-polyfill";
browser.browserAction.onClicked.addListener(async () => {
await browser.runtime.openOptionsPage();
});
browser.runtime.onInstalled.addListener(async () => {
await browser.runtime.openOptionsPage();
});