aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-24 00:54:20 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-24 00:54:20 +0200
commitf06a2b236d9bfe603106aa186145343d88e064bb (patch)
treeb394b3ec1d2f673415ddb3915bd272c661e1326f
parentd7e5aec1a556467a6bd3e6b2e3cf7440c6bd4ddc (diff)
downloadwallet-core-f06a2b236d9bfe603106aa186145343d88e064bb.tar.xz
fix for firefox
-rw-r--r--lib/wallet/chromeBadge.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wallet/chromeBadge.ts b/lib/wallet/chromeBadge.ts
index 7ff36154c..934bc2a67 100644
--- a/lib/wallet/chromeBadge.ts
+++ b/lib/wallet/chromeBadge.ts
@@ -78,7 +78,7 @@ export class ChromeBadge implements Badge {
0, 0, this.canvas.width, this.canvas.height);
// Allow running outside the extension for testing
- if (chrome && chrome.browserAction) {
+ if (window["chrome"] && window.chrome["browserAction"]) {
let imageData = this.ctx.getImageData(0,
0,
this.canvas.width,