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

Side by Side Diff: lib/prefs.js

Issue 29363445: Issue 4577 - Remove Safari support (Closed)
Patch Set: Created Nov. 17, 2016, 11:36 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 | « lib/polyfills/url.js ('k') | metadata.common » ('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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 /** 170 /**
171 * Additonal subscriptions to be automatically added when the extension is 171 * Additonal subscriptions to be automatically added when the extension is
172 * loaded. This preference isn't set by the extension but can be pre-configured 172 * loaded. This preference isn't set by the extension but can be pre-configured
173 * externally. 173 * externally.
174 * 174 *
175 * @type {string[]} 175 * @type {string[]}
176 */ 176 */
177 defaults.additional_subscriptions = []; 177 defaults.additional_subscriptions = [];
178 178
179 /** 179 /**
180 * Whether to enable the use of Safari's content blocker mechanism.
181 */
182 defaults.safariContentBlocker = false;
183
184 /**
185 * @namespace 180 * @namespace
186 * @static 181 * @static
187 */ 182 */
188 let Prefs = exports.Prefs = { 183 let Prefs = exports.Prefs = {
189 /** 184 /**
190 * Adds a callback that is called when the 185 * Adds a callback that is called when the
191 * value of a specified preference changed. 186 * value of a specified preference changed.
192 * 187 *
193 * @param {string} preference 188 * @param {string} preference
194 * @param {function} callback 189 * @param {function} callback
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 eventEmitter.emit(pref); 312 eventEmitter.emit(pref);
318 } 313 }
319 } 314 }
320 }); 315 });
321 } 316 }
322 317
323 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded); 318 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded);
324 } 319 }
325 320
326 init(); 321 init();
OLDNEW
« no previous file with comments | « lib/polyfills/url.js ('k') | metadata.common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld