fix for firefox
This commit is contained in:
parent
d7e5aec1a5
commit
f06a2b236d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user