aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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,