From 3c9d23c6b71f7ead27e305724df2ff24a3147225 Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Fri, 3 Jun 2022 00:53:01 +0800 Subject: [PATCH] fix: export bug on Windows --- src/Better Note Markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Better Note Markdown.js b/src/Better Note Markdown.js index 6cc89e8..f026c81 100644 --- a/src/Better Note Markdown.js +++ b/src/Better Note Markdown.js @@ -1708,10 +1708,10 @@ let bundle; /\// ) ); - Zotero.debug(newAbsPath); - if (!Zotero.isWin && newAbsPath.charAt(0) !== "/") { + if (!_Zotero.isWin && newAbsPath.charAt(0) !== "/") { newAbsPath = "/" + newAbsPath; } + Zotero.debug(newAbsPath); let newFile = oldFile; try { newFile = _Zotero.File.copyToUnique(oldFile, newAbsPath).path;