Index: chrome/ext/popup.js |
=================================================================== |
deleted file mode 100644 |
--- a/chrome/ext/popup.js |
+++ /dev/null |
@@ -1,23 +0,0 @@ |
-"use strict"; |
- |
-(function() |
-{ |
- const backgroundPage = chrome.extension.getBackgroundPage(); |
- window.ext = Object.create(backgroundPage.ext); |
- |
- window.ext.closePopup = () => |
- { |
- window.close(); |
- }; |
- |
- // 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; |
- } |
- }; |
-}()); |