www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f70d0c0b2955bb97580f869cbe503914f8c16e58
parent 62fb1024b27277d48eb2491c779430a5222cfb86
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 26 Mar 2014 16:12:36 -0400

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.

Diffstat:
Mchrome/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 @@ -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 {