mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #1069 from psjostrom/SDA-2443-Fix-incorrect-download-file-name
fix: SDA-2443 Fixed incorrect file name in edge cases
This commit is contained in:
commit
0a010c8c92
@ -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