Index: ext/common.js |
=================================================================== |
--- a/ext/common.js |
+++ b/ext/common.js |
@@ -19,6 +19,12 @@ |
(function() |
{ |
+ // Both Edge and Mozilla Web Extensions use the namespace |
+ // 'browser' instead of 'chrome'. Edge has chrome namespace defined, |
+ // in some cases, but only with one property: 'app'. |
+ if (typeof chrome == "undefined" || typeof chrome.extension == "undefined") |
Oleksandr
2017/07/17 12:52:40
When 'chrome' is undefined, calling 'if (!chrome)'
kzar
2017/07/17 14:08:19
Acknowledged.
|
+ window.chrome = window.browser; |
+ |
window.ext = {}; |
let EventTarget = ext._EventTarget = function() |