Index: ext/popup.js |
=================================================================== |
--- a/ext/popup.js |
+++ b/ext/popup.js |
@@ -2,6 +2,9 @@ |
(function() |
{ |
+ if ((typeof chrome == "undefined") || |
kzar
2017/06/22 13:45:01
Nit: This seems inconsistent with the check in ext
|
+ (typeof chrome.extension == "undefined")) |
+ window.chrome = browser; |
const backgroundPage = chrome.extension.getBackgroundPage(); |
window.ext = Object.create(backgroundPage.ext); |