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

Unified Diff: ext/background.js

Issue 29564735: Issue 5587 - Use options module (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Include check for mobile-options.html Created Oct. 5, 2017, 12:08 p.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
« no previous file with comments | « background.js ('k') | messageResponder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -73,25 +73,16 @@
this._keys.splice(index, 1);
this._values.splice(index, 1);
}
}
};
window.ext.PageMap = PageMap;
- window.ext.showOptions = function(callback)
- {
- if (!/\/(?:mobile-)?options\.html/.test(top.location.href))
- window.open("options.html", "_blank");
-
- if (callback)
- callback();
- };
-
window.ext.devtools = {
onCreated: {
addListener(listener)
{
window.addEventListener("message", (event) =>
{
if (event.data.type == "devtools")
listener(new ext.Page(event.source));
« no previous file with comments | « background.js ('k') | messageResponder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld