clearUserPref no longer throws on an invalid pref
This commit is contained in:
parent
1f8b6fad61
commit
3eed76698c
1 changed files with 1 additions and 6 deletions
|
@ -2323,13 +2323,8 @@ Zotero.Prefs = new function(){
|
||||||
|
|
||||||
|
|
||||||
this.clear = function (pref) {
|
this.clear = function (pref) {
|
||||||
try {
|
|
||||||
this.prefBranch.clearUserPref(pref);
|
this.prefBranch.clearUserPref(pref);
|
||||||
}
|
}
|
||||||
catch (e) {
|
|
||||||
throw ("Invalid preference '" + pref + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Import settings bundles
|
// Import settings bundles
|
||||||
|
|
Loading…
Add table
Reference in a new issue