mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-23 01:16:24 -06:00
SDA-2443 Fixed incorrect file name in edge cases
This commit is contained in:
parent
3749b2e70c
commit
ea43054db3
@ -403,7 +403,7 @@ export const handleDownloadManager = (_event, item: Electron.DownloadItem, webCo
|
||||
// Send file path when download is complete
|
||||
item.once('done', (_e, state) => {
|
||||
if (state === 'completed') {
|
||||
const savePathSplit = item.getSavePath()?.split('/');
|
||||
const savePathSplit = item.getSavePath()?.split(path.sep);
|
||||
const data: IDownloadItem = {
|
||||
_id: getGuid(),
|
||||
savedPath: item.getSavePath() || '',
|
||||
|
Loading…
Reference in New Issue
Block a user