Allow clearing global prefs

This commit is contained in:
Dan Stillman 2017-07-25 15:44:49 -04:00
parent c6e4722289
commit d8b201487d

View file

@ -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);
}