OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |