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

Unified Diff: firstRun.js

Issue 8681105: Show a warning to people having a corrupted file storage (Closed)
Patch Set: Created Oct. 30, 2012, 10:28 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
« no previous file with comments | « firstRun.html ('k') | lib/adblockplus_compat.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « firstRun.html ('k') | lib/adblockplus_compat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld