diff --git a/chrome/content/zotero/xpcom/proxy.js b/chrome/content/zotero/xpcom/proxy.js index 7a80806ce5..59020b084f 100644 --- a/chrome/content/zotero/xpcom/proxy.js +++ b/chrome/content/zotero/xpcom/proxy.js @@ -458,7 +458,12 @@ Zotero.Proxy.prototype.erase = Zotero.Promise.coroutine(function* () { Zotero.Proxy.prototype.toProper = function(m) { if (!Array.isArray(m)) { // make sure url has a trailing slash - m = new URL(m).href; + if (typeof URL === 'undefined') { + m = new (Services.wm.getMostRecentWindow("navigator:browser")).URL(m).href; + } + else { + m = new URL(m).href; + } let match = this.regexp.exec(m); if (!match) { return m