Index: ext/popup.js |
=================================================================== |
deleted file mode 100644 |
--- a/ext/popup.js |
+++ /dev/null |
@@ -1,20 +0,0 @@ |
-"use strict"; |
- |
-(function() |
-{ |
- if (typeof chrome == "undefined" || typeof chrome.extension == "undefined") |
- window.chrome = browser; |
- const backgroundPage = chrome.extension.getBackgroundPage(); |
Manish Jethani
2017/10/09 17:43:24
Finally there's no need to access the background p
|
- window.ext = Object.create(backgroundPage.ext); |
- |
- // We have to override ext.backgroundPage, because in order |
- // to send messages the local "chrome" namespace must be used. |
- window.ext.backgroundPage = { |
- sendMessage: chrome.runtime.sendMessage, |
- |
- getWindow() |
- { |
- return backgroundPage; |
- } |
- }; |
-}()); |