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

Side by Side Diff: lib/prefs.js

Issue 29759558: Issue 6599 - Hotfix to drop updated page everywhere (Closed)
Patch Set: appplied Sebastian's changes Created April 24, 2018, 10:12 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 | « no previous file | lib/subscriptionInit.js » ('j') | metadata.chrome » ('J')
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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 /** 194 /**
195 * Additonal subscriptions to be automatically added when the extension is 195 * Additonal subscriptions to be automatically added when the extension is
196 * loaded. This preference isn't set by the extension but can be pre-configured 196 * loaded. This preference isn't set by the extension but can be pre-configured
197 * externally. 197 * externally.
198 * 198 *
199 * @type {string[]} 199 * @type {string[]}
200 */ 200 */
201 defaults.additional_subscriptions = []; 201 defaults.additional_subscriptions = [];
202 202
203 /** 203 /**
204 * The version of major updates that the user is aware of. If it's too low,
205 * the updates page will be shown to inform the user about intermediate changes.
206 *
207 * @type {number}
208 */
209 defaults.last_updates_page_displayed = 0;
210
211 /**
212 * @namespace 204 * @namespace
213 * @static 205 * @static
214 */ 206 */
215 let Prefs = exports.Prefs = { 207 let Prefs = exports.Prefs = {
216 /** 208 /**
217 * Adds a callback that is called when the 209 * Adds a callback that is called when the
218 * value of a specified preference changed. 210 * value of a specified preference changed.
219 * 211 *
220 * @param {string} preference 212 * @param {string} preference
221 * @param {function} callback 213 * @param {function} callback
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 eventEmitter.emit(pref); 372 eventEmitter.emit(pref);
381 } 373 }
382 } 374 }
383 }); 375 });
384 } 376 }
385 377
386 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded); 378 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded);
387 } 379 }
388 380
389 init(); 381 init();
OLDNEW
« no previous file with comments | « no previous file | lib/subscriptionInit.js » ('j') | metadata.chrome » ('J')

Powered by Google App Engine
This is Rietveld