clearUserPref no longer throws on an invalid pref

This commit is contained in:
Dan Stillman 2015-05-13 10:44:26 -04:00
parent 1f8b6fad61
commit 3eed76698c

View file

@ -2323,12 +2323,7 @@ Zotero.Prefs = new function(){
this.clear = function (pref) {
try {
this.prefBranch.clearUserPref(pref);
}
catch (e) {
throw ("Invalid preference '" + pref + "'");
}
this.prefBranch.clearUserPref(pref);
}