From f70d0c0b2955bb97580f869cbe503914f8c16e58 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 26 Mar 2014 16:12:36 -0400 Subject: [PATCH] Fix "invalid 'instanceof' operand Zotero.Exception" error This was hiding the actual error when there was an error installing the parent style of a dependent style. --- chrome/content/zotero/xpcom/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 8202ae19cf..5195ef986a 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -363,7 +363,7 @@ Zotero.Styles = new function() { return Zotero.HTTP.promise("GET", source).then(function(xmlhttp) { return _install(xmlhttp.responseText, origin, true); }).fail(function(error) { - if(typeof error === "object" && error instanceof Zotero.Exception) { + if(typeof error === "object" && error instanceof Zotero.Exception.Alert) { throw new Zotero.Exception.Alert("styles.installSourceError", [origin, source], "styles.install.title", error); } else {