From 492e7917b6fe88369c4a7c5b2b91ad5f9a2d9bd0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 5 Oct 2017 16:58:19 -0400 Subject: [PATCH] Fix breakage in the connector from 365e58249dc --- chrome/content/zotero/xpcom/http.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index a22b87542..941508bb8 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -65,7 +65,10 @@ Zotero.HTTP = new function() { this[i] = options[i]; } }; - this.SecurityException.prototype = Object.create(Zotero.Error.prototype); + this.SecurityException.prototype = Object.create( + // Zotero.Error not available in the connector + Zotero.Error ? Zotero.Error.prototype : Error.prototype + ); this.promise = function () {