Index: firstRun.js |
=================================================================== |
--- a/firstRun.js |
+++ b/firstRun.js |
@@ -94,21 +94,26 @@ function init() |
var titleId = (backgroundPage.isFirstRun ? "firstRun_title_install" : "firstRun_title_update"); |
var pageTitle = i18n.getMessage(titleId); |
document.title = document.getElementById("title-main").textContent = pageTitle; |
// Only show changelog link on the update page |
if (backgroundPage.isFirstRun) |
document.getElementById("title-changelog").style.display = "none"; |
+ // Show warning if data corruption was detected |
+ if (backgroundPage.seenDataCorruption) |
+ document.getElementById("dataCorruptionWarning").removeAttribute("hidden"); |
+ |
// Set up URLs |
var versionId = chrome.app.getDetails().version.split(".").slice(0, 2).join(""); |
setLinks("title-changelog", "https://adblockplus.org/releases/adblock-plus-" + versionId + "-for-google-chrome-released"); |
setLinks("acceptableAdsExplanation", getDocLink("acceptable_ads", "criteria"), |
backgroundPage.openOptions); |
+ setLinks("dataCorruptionWarning", getDocLink("knownIssuesChrome_filterstorage")); |
initSocialLinks(variant); |
var donateLink = document.getElementById("share-donate"); |
donateLink.href = getDocLink("donate") + "&variant=" + variant; |
} |
window.addEventListener("load", init, false); |