aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/background.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/background.ts')
-rw-r--r--packages/taler-wallet-webextension/src/background.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/background.ts b/packages/taler-wallet-webextension/src/background.ts
index d0abd4805..ab572ea73 100644
--- a/packages/taler-wallet-webextension/src/background.ts
+++ b/packages/taler-wallet-webextension/src/background.ts
@@ -28,7 +28,7 @@ import firefoxAPI from "./platform/firefox.js";
import chromeAPI from "./platform/chrome.js";
import { wxMain } from "./wxBackend.js";
-const isFirefox = typeof (window as any)['InstallTrigger'] !== 'undefined'
+const isFirefox = typeof (window as any) !== 'undefined' && typeof (window as any)['InstallTrigger'] !== 'undefined'
// FIXME: create different entry point for any platform instead of
// switching in runtime