Index: ext/popup.js |
=================================================================== |
--- a/ext/popup.js |
+++ b/ext/popup.js |
@@ -2,6 +2,9 @@ |
(function() |
{ |
+ if ((typeof chrome == "undefined") || |
+ (typeof chrome.extension == "undefined")) |
+ window.chrome = browser; |
const backgroundPage = chrome.extension.getBackgroundPage(); |
window.ext = Object.create(backgroundPage.ext); |