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

10 lines
253 B
TypeScript
Raw Normal View History

2022-12-26 11:57:57 +00:00
import browser from "webextension-polyfill";
browser.browserAction.onClicked.addListener(async () => {
await browser.runtime.openOptionsPage();
});
browser.runtime.onInstalled.addListener(async () => {
await browser.runtime.openOptionsPage();
});