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

Side by Side Diff: firstRun.js

Issue 29338201: Issue 3719 - Adapt for changes in the initilization code on Chrome/Safari (Closed)
Patch Set: Created March 14, 2016, 11:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « firstRun.html ('k') | locale/en-US/firstRun.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 getDocLink("contribute", function(link) 73 getDocLink("contribute", function(link)
74 { 74 {
75 setLinks("share-headline", link); 75 setLinks("share-headline", link);
76 }); 76 });
77 77
78 ext.backgroundPage.sendMessage({ 78 ext.backgroundPage.sendMessage({
79 type: "app.get", 79 type: "app.get",
80 what: "issues" 80 what: "issues"
81 }, function(issues) 81 }, function(issues)
82 { 82 {
83 // Show warning if data corruption was detected
84 if (issues.seenDataCorruption)
85 {
86 E("dataCorruptionWarning").removeAttribute("hidden");
87 getDocLink("knownIssuesChrome_filterstorage", function(link)
88 {
89 setLinks("dataCorruptionWarning", link);
90 });
91 }
92
93 // Show warning if filterlists settings were reinitialized 83 // Show warning if filterlists settings were reinitialized
94 if (issues.filterlistsReinitialized) 84 if (issues.filterlistsReinitialized)
95 { 85 {
96 E("filterlistsReinitializedWarning").removeAttribute("hidden"); 86 E("filterlistsReinitializedWarning").removeAttribute("hidden");
97 setLinks("filterlistsReinitializedWarning", openFilters); 87 setLinks("filterlistsReinitializedWarning", openFilters);
98 } 88 }
99 89
100 if (issues.legacySafariVersion) 90 if (issues.legacySafariVersion)
101 E("legacySafariWarning").removeAttribute("hidden"); 91 E("legacySafariWarning").removeAttribute("hidden");
102 }); 92 });
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 { 209 {
220 var button = E("toggle-" + feature); 210 var button = E("toggle-" + feature);
221 if (isEnabled) 211 if (isEnabled)
222 button.classList.remove("off"); 212 button.classList.remove("off");
223 else 213 else
224 button.classList.add("off"); 214 button.classList.add("off");
225 } 215 }
226 216
227 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); 217 document.addEventListener("DOMContentLoaded", onDOMLoaded, false);
228 })(); 218 })();
OLDNEW
« no previous file with comments | « firstRun.html ('k') | locale/en-US/firstRun.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld