diff --git a/package.json b/package.json index f1c65657..10268607 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@filen/web", "private": false, - "version": "0.1.40", + "version": "0.1.41", "type": "module", "description": "Filen Web & Desktop app", "scripts": { diff --git a/src/components/dialogs/createSync.tsx b/src/components/dialogs/createSync.tsx index fd478119..23444259 100644 --- a/src/components/dialogs/createSync.tsx +++ b/src/components/dialogs/createSync.tsx @@ -50,8 +50,9 @@ export function doesSyncNameExist(name: string): boolean { export function tryingToSyncNetworkDrive(path: string): boolean { const desktopConfig = getDesktopConfig() + const sep = window.desktopAPI.osPlatform() === "win32" ? "\\" : "/" - return path.startsWith(desktopConfig.networkDriveConfig.mountPoint) + return path.startsWith(desktopConfig.networkDriveConfig.mountPoint + sep) } export const CreateSyncDialog = memo(() => {