We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bb989c + 4a1c250 commit 68657eeCopy full SHA for 68657ee
1 file changed
src/InjectScriptV3.ts
@@ -38,8 +38,11 @@ export default class extends AbstractInjectScript {
38
39
// Firefox does not support `documentIds` in the target
40
// getBrowserInfo is only available in firefox
41
- // @ts-expect-error
42
- const isFirefox = !!browser().runtime.getBrowserInfo;
+ let isFirefox = false;
+ try {
43
+ // @ts-expect-error
44
+ isFirefox = !!browser().runtime.getBrowserInfo;
45
+ } catch (_e) {}
46
47
if (!isFirefox) {
48
const documentIds = this.documentIds;
0 commit comments