Browse Source

Merge pull request #249 from ente-io/fix-desktop-save-extra-dot

Fixed desktop downloaded file had extra dot in name
Abhinav Kumar 1 year ago
parent
commit
cb3c6fa50d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/main.ts

+ 1 - 1
src/utils/main.ts

@@ -58,7 +58,7 @@ export function getUniqueSavePath(filename: string, directory: string): string {
             extension,
         ]
             .filter((x) => x) // filters out undefined/null values
-            .join('.');
+            .join('');
         uniqueFileSavePath = path.join(directory, fileNameWithNumberedSuffix);
     }
     return uniqueFileSavePath;