Index: ext/common.js |
=================================================================== |
--- a/ext/common.js |
+++ b/ext/common.js |
@@ -19,6 +19,13 @@ |
(function() |
{ |
+ // Both Edge and Mozilla Web Extensions use the namespace |
+ // 'browser' instead of 'chrome'. Edge has chrome namespace defined, |
+ // but only with one property: 'app'. |
+ if ((typeof chrome == "undefined") || |
Oleksandr
2017/06/15 11:21:32
'chrome' is undefined in content script, but in ba
Sebastian Noack
2017/06/19 11:07:02
Nit: The inner parenthesis are redundant.
Oleksandr
2017/06/21 23:38:35
Done.
|
+ (typeof chrome.extension == "undefined")) |
+ window.chrome = window.browser; |
+ |
window.ext = {}; |
let EventTarget = ext._EventTarget = function() |