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

Unified Diff: lib/main.js

Issue 29366570: Issue 4681 - Move URL Fixer first-run page into the extension (Closed) Base URL: https://hg.adblockplus.org/urlfixer
Patch Set: Created Dec. 1, 2016, 1:05 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
« chrome/content/firstrun/style.css ('K') | « chrome/content/firstrun/style.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/main.js
===================================================================
--- a/lib/main.js
+++ b/lib/main.js
@@ -70,17 +70,17 @@ function onBrowserInitialized()
let window = Services.wm.getMostRecentWindow("navigator:browser");
if (!window)
return;
let oldVersion = Prefs.version;
Prefs.version = require("info").addonVersion;
if (!oldVersion || isMajorUpdate(oldVersion, Prefs.version))
{
- let url = "http://urlfixer.org/firstrun/?v=" + Prefs.version;
+ let url = "chrome://url-fixer/content/firstrun/index.html";
if (oldVersion)
url += "&update=1";
if ("Browser" in window && typeof window.Browser.addTab != 'undefined')
{
// window.Browser.addTab(url, true);
// No firstrun on Fennec.
}
else if ("gBrowser" in window)
« chrome/content/firstrun/style.css ('K') | « chrome/content/firstrun/style.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld