diff --git a/src/InjectScriptV3.ts b/src/InjectScriptV3.ts index 3c1f4fe..8621290 100644 --- a/src/InjectScriptV3.ts +++ b/src/InjectScriptV3.ts @@ -38,8 +38,11 @@ export default class extends AbstractInjectScript { // Firefox does not support `documentIds` in the target // getBrowserInfo is only available in firefox - // @ts-expect-error - const isFirefox = !!browser().runtime.getBrowserInfo; + let isFirefox = false; + try { + // @ts-expect-error + isFirefox = !!browser().runtime.getBrowserInfo; + } catch (_e) {} if (!isFirefox) { const documentIds = this.documentIds;