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 {