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

Side by Side Diff: firstRun.js

Issue 29371585: Issue 4783 - Drop Safari support [adblockplusui] (Closed)
Patch Set: Created Jan. 12, 2017, 9: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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 type: "app.get", 57 type: "app.get",
58 what: "issues" 58 what: "issues"
59 }, function(issues) 59 }, function(issues)
60 { 60 {
61 // Show warning if filterlists settings were reinitialized 61 // Show warning if filterlists settings were reinitialized
62 if (issues.filterlistsReinitialized) 62 if (issues.filterlistsReinitialized)
63 { 63 {
64 E("filterlistsReinitializedWarning").removeAttribute("hidden"); 64 E("filterlistsReinitializedWarning").removeAttribute("hidden");
65 setLinks("filterlistsReinitializedWarning", openFilters); 65 setLinks("filterlistsReinitializedWarning", openFilters);
66 } 66 }
67
68 if (issues.legacySafariVersion)
69 E("legacySafariWarning").removeAttribute("hidden");
70 }); 67 });
71 68
72 updateSocialLinks(); 69 updateSocialLinks();
73 70
74 ext.onMessage.addListener(function(message) 71 ext.onMessage.addListener(function(message)
75 { 72 {
76 if (message.type == "subscriptions.respond") 73 if (message.type == "subscriptions.respond")
77 { 74 {
78 updateSocialLinks(); 75 updateSocialLinks();
79 } 76 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 136 }
140 } 137 }
141 138
142 function openFilters() 139 function openFilters()
143 { 140 {
144 ext.backgroundPage.sendMessage({type: "app.open", what: "options"}); 141 ext.backgroundPage.sendMessage({type: "app.open", what: "options"});
145 } 142 }
146 143
147 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); 144 document.addEventListener("DOMContentLoaded", onDOMLoaded, false);
148 })(); 145 })();
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