diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 087b5e1885..b20d245664 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1018,7 +1018,6 @@ Zotero.Attachments = new function(){ // If no title was provided, pull it from the document if (!title) { let parser = new DOMParser(); - parser.init(null, Services.io.newURI(url)); let doc = parser.parseFromString(snapshotContent, 'text/html'); title = doc.title; } diff --git a/chrome/content/zotero/xpcom/connector/server_connector.js b/chrome/content/zotero/xpcom/connector/server_connector.js index 933173a3e0..4a04a09e0b 100644 --- a/chrome/content/zotero/xpcom/connector/server_connector.js +++ b/chrome/content/zotero/xpcom/connector/server_connector.js @@ -1187,7 +1187,6 @@ Zotero.Server.Connector.SaveSnapshot.prototype = { } var parser = new DOMParser(); - parser.init(null, Services.io.newURI(data.url)); var doc = parser.parseFromString(`${data.html}`, 'text/html'); doc = Zotero.HTTP.wrapDocument(doc, data.url);