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

Unified Diff: ext/background.js

Issue 29488575: Issue 5384 - Introduced dedicated mobile options page (Closed)
Patch Set: Created Aug. 1, 2017, 12:46 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
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -80,7 +80,7 @@
window.ext.showOptions = function(callback)
{
- if (top.location.href.indexOf("new-options.html") == -1)
+ if (!/\/(?:mobile|new)-options\.html/.test(top.location.href))
window.open("new-options.html", "_blank");
if (callback)
« no previous file with comments | « background.js ('k') | locale/en-US/mobile-options.json » ('j') | mobile-options.html » ('J')

Powered by Google App Engine
This is Rietveld