| Index: ext/background.js |
| =================================================================== |
| --- a/ext/background.js |
| +++ b/ext/background.js |
| @@ -19,20 +19,18 @@ |
| (function() |
| { |
| if (typeof ext == "undefined") |
| window.ext = {}; |
| window.addEventListener("load", () => |
| { |
| - parent.postMessage({ |
| - type: "backgroundPageLoaded" |
| - }, "*"); |
| - }, false); |
| + parent.postMessage({type: "backgroundPageLoaded"}, "*"); |
| + }); |
| function PageMap() |
| { |
| this._keys = []; |
| this._values = []; |
| } |
| PageMap.prototype = { |
| keys() |
| @@ -72,22 +70,9 @@ |
| { |
| this._keys.splice(index, 1); |
| this._values.splice(index, 1); |
| } |
| } |
| }; |
| window.ext.PageMap = PageMap; |
| - |
| - window.ext.devtools = { |
| - onCreated: { |
| - addListener(listener) |
| - { |
| - window.addEventListener("message", (event) => |
| - { |
| - if (event.data.type == "devtools") |
| - listener(new ext.Page(event.source)); |
| - }); |
| - } |
| - } |
| - }; |
| }()); |