diff --git a/source/on-extension-start.ts b/source/on-extension-start.ts index a3a0f34..eb3fcb1 100644 --- a/source/on-extension-start.ts +++ b/source/on-extension-start.ts @@ -5,10 +5,10 @@ const event = new EventTarget(); let hasRun = false; let hasListeners = false; -// @ts-expect-error No need to load `browser` types yet -const browserStorage = globalThis.browser?.storage as typeof chrome.storage ?? chrome.storage; - async function runner() { + // @ts-expect-error No need to load `browser` types yet + const browserStorage = globalThis.browser?.storage as typeof chrome.storage ?? chrome.storage; + hasRun = true; if (!hasListeners) {