From 3eed76698cf442bf1fa24a057a8fe2465eff044d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 13 May 2015 10:44:26 -0400 Subject: [PATCH] clearUserPref no longer throws on an invalid pref --- chrome/content/zotero/xpcom/zotero.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 768f1f9724..2e2abc6c5e 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -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); }