fix: export bug on Windows
This commit is contained in:
parent
94fb1ba09d
commit
3c9d23c6b7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue