We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 795e9f4 + c3f8d46 commit fb3d90dCopy full SHA for fb3d90d
1 file changed
src/InjectCssV3.ts
@@ -33,8 +33,11 @@ export default class extends AbstractInjectCss {
33
34
// Firefox does not support `documentIds` in the target
35
// getBrowserInfo is only available in firefox
36
- // @ts-expect-error
37
- const isFirefox = !!browser().runtime.getBrowserInfo;
+ let isFirefox = false;
+ try {
38
+ // @ts-expect-error
39
+ isFirefox = !!browser().runtime.getBrowserInfo;
40
+ } catch (_e) {}
41
42
if (!isFirefox) {
43
const documentIds = this.documentIds;
0 commit comments