Fix breakage in the connector from 365e58249d

This commit is contained in:
Dan Stillman 2017-10-05 16:58:19 -04:00
parent e14b8f94bd
commit 492e7917b6

View file

@ -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 () {