mirror of
https://github.com/zotero/zotero.git
synced 2026-10-11 03:38:25 +00:00
Fix URL resolving during translation in Zotero client
Regression in c0b6712923
The URL constructor isn't available in XPCOM.
This commit is contained in:
parent
d3c481fcf6
commit
71550deb98
1 changed files with 6 additions and 1 deletions
|
|
@ -1396,7 +1396,12 @@ Zotero.Translate.Base.prototype = {
|
|||
resolved;
|
||||
if (!m) {
|
||||
if (this.location) {
|
||||
resolved = new URL(url, this.location).toString();
|
||||
if (Zotero.isFx) {
|
||||
resolved = Services.io.newURI(this.location, "", null).resolve(url);
|
||||
}
|
||||
else {
|
||||
resolved = new URL(url, this.location).toString();
|
||||
}
|
||||
}
|
||||
else if (url.startsWith('//')) {
|
||||
// Use HTTPS by default for protocol-relative URL with no associated web page
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue