www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d8b201487d5eff64d05a80f556a3a05310ca1852
parent c6e4722289472ee8df89b8a03dd8cf152f68708f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 25 Jul 2017 15:44:49 -0400

Allow clearing global prefs

Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -2089,8 +2089,14 @@ Zotero.Prefs = new function(){ } - this.clear = function (pref) { - this.prefBranch.clearUserPref(pref); + this.clear = function (pref, global) { + if (global) { + var branch = Services.prefs.getBranch(""); + } + else { + var branch = this.prefBranch; + } + branch.clearUserPref(pref); }