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: Created Oct. 4, 2017, 9:13 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))
Manish Jethani 2017/10/04 21:15:33 In the new version I've removed the "mobile-" part
Thomas Greiner 2017/10/05 11:58:16 We're only using options.html as the top page insi
Manish Jethani 2017/10/05 12:09:25 Ah, I see. Made the change.
Thomas Greiner 2017/10/05 12:25:54 Thanks.
- 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