fix for firefox

This commit is contained in:
Florian Dold 2016-09-24 00:54:20 +02:00
parent d7e5aec1a5
commit f06a2b236d

View File

@ -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,