Allow clearing global prefs
This commit is contained in:
parent
c6e4722289
commit
d8b201487d
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue