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.isUpgradeFrom("simpleadblock")) { |
Eric
2015/05/17 00:29:25
Where is 'isUpgradeFrom' defined?
Is it the same
|
+ document.getElementById("upgrade-from-other-plugin").style.display = "block"; |
+ } |
var donateLink = document.getElementById("share-donate"); |
donateLink.href = getDocLink("donate"); |
} |