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

Unified Diff: html/static/js/firstRun.js

Issue 5024350814076928: Issue 1103 - Migrate Simple Adblock users
Patch Set: Use registry instead of prefs for storing the Simple Adblock mark Created Aug. 7, 2015, 10:34 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: html/static/js/firstRun.js
===================================================================
--- a/html/static/js/firstRun.js
+++ b/html/static/js/firstRun.js
@@ -105,10 +105,13 @@
var mapping = {
"aa-title": "first-run-aa-title",
"aa-text": "first-run-aa-text",
- "title-main": AdblockPlus.isUpdate() ? "first-run-title-update" : "first-run-title-install",
+ "title-main": AdblockPlus.getConversion() == "simpleadblock" ? "first-run-title-simple-adblock" :
+ AdblockPlus.isUpdate() ? "first-run-title-update" : "first-run-title-install",
"share-donate": "first-run-share2-donate",
"share-text": "first-run-share2",
- "share-connection": "first-run-share2-or"
+ "share-connection": "first-run-share2-or",
+ "upgrade-from-other-plugin-text1": "first-run-text1-simple-adblock",
+ "upgrade-from-other-plugin-text2": "first-run-text2-simple-adblock"
};
document.title = AdblockPlus.getMessage("first-run", mapping['title-main']);
@@ -125,6 +128,9 @@
initSocialLinks();
setLinks("aa-text", getDocLink("acceptable_ads_criteria"), "index.html");
+ if (AdblockPlus.getConversion() == "simpleadblock") {
+ document.getElementById("upgrade-from-other-plugin").style.display = "block";
+ }
var donateLink = document.getElementById("share-donate");
donateLink.href = getDocLink("donate");
}
« no previous file with comments | « html/static/css/firstRun.css ('k') | html/static/js/ieFirstRun.js » ('j') | src/engine/Main.cpp » ('J')

Powered by Google App Engine
This is Rietveld