fix: export image node path bug

This commit is contained in:
xiangyu 2022-12-04 16:26:48 +08:00
parent f95f0875d6
commit 239fd2e787

View File

@ -897,7 +897,7 @@ class SyncUtils extends AddonBase {
newFile = newFile.replace(/\\/g, "/");
}
newFile = Zotero.File.normalizeToUnix(
absolutePath ? newFile : `$attachments/${newFile.split(/\//).pop()}`
absolutePath ? newFile : `attachments/${newFile.split(/\//).pop()}`
);
} catch (e) {
Zotero.debug(e);