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

Side by Side Diff: lib/prefs.js

Issue 29340749: Issue 3816 - Add hidden toggle for the new options page (Closed)
Patch Set: Update adblockplusui dependency Created April 22, 2016, 12:43 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
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 experimental new options page. This preference is
181 * provided to aid development and QA and is not configurable with the user
182 * interface.
183 *
184 * @type {boolean}
185 */
186 defaults.new_options_page = false;
187
188 /**
180 * @namespace 189 * @namespace
181 * @static 190 * @static
182 */ 191 */
183 let Prefs = exports.Prefs = { 192 let Prefs = exports.Prefs = {
184 /** 193 /**
185 * Adds a callback that is called when the 194 * Adds a callback that is called when the
186 * value of a specified preference changed. 195 * value of a specified preference changed.
187 * 196 *
188 * @param {string} preference 197 * @param {string} preference
189 * @param {function} callback 198 * @param {function} callback
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 eventEmitter.emit(pref); 321 eventEmitter.emit(pref);
313 } 322 }
314 } 323 }
315 }); 324 });
316 } 325 }
317 326
318 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded); 327 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded);
319 } 328 }
320 329
321 init(); 330 init();
OLDNEW

Powered by Google App Engine
This is Rietveld