Skip to content

Commit

Permalink
onExtensionStart - Don't break node
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 1, 2024
1 parent 1bfc164 commit 64c1b0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/on-extension-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 64c1b0c

Please sign in to comment.