Allow clearing global prefs
This commit is contained in:
parent
c6e4722289
commit
d8b201487d
|
@ -2089,8 +2089,14 @@ Zotero.Prefs = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.clear = function (pref) {
|
this.clear = function (pref, global) {
|
||||||
this.prefBranch.clearUserPref(pref);
|
if (global) {
|
||||||
|
var branch = Services.prefs.getBranch("");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var branch = this.prefBranch;
|
||||||
|
}
|
||||||
|
branch.clearUserPref(pref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user