fix: export bug on Windows

This commit is contained in:
xiangyu 2022-06-03 00:53:01 +08:00
parent 94fb1ba09d
commit 3c9d23c6b7

View File

@ -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;