fix: slow logging

This commit is contained in:
windingwind 2024-07-24 14:16:59 +08:00
parent 695b013940
commit 1bcbe40996

View File

@ -420,7 +420,7 @@ async function copyEmbeddedImagesInHTML(
targetNote?: Zotero.Item,
refNotes: Zotero.Item[] = [],
) {
ztoolkit.log("parseEmbeddedImagesInHTML", html, targetNote, refNotes);
ztoolkit.log("parseEmbeddedImagesInHTML", html, targetNote?.getNoteTitle(), refNotes.length);
if (!targetNote) {
return html;
}
@ -433,7 +433,7 @@ async function copyEmbeddedImagesInHTML(
return html;
}
ztoolkit.log(attachments);
ztoolkit.log(attachments.length, "attachments found in refNotes");
const doc = new DOMParser().parseFromString(html, "text/html");