Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ext/background.js

Issue 29573905: Issue 4580 - Replace ext.devtools with devtools Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Use runtime.onConnect Created Oct. 12, 2017, 1:22 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -72,22 +72,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));
- });
- }
- }
- };
}());

Powered by Google App Engine
This is Rietveld