From d6b62ae9a71d1cae7ac1cc180e02e8c87a6f5d26 Mon Sep 17 00:00:00 2001 From: Abdul Khan Date: Sat, 11 May 2024 22:51:42 -0400 Subject: [PATCH] Make It Savable For Any OS --- src/main/lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lib/index.ts b/src/main/lib/index.ts index 192dde4..f4d4d9f 100644 --- a/src/main/lib/index.ts +++ b/src/main/lib/index.ts @@ -9,7 +9,7 @@ import path from 'path' import welcomeNoteFile from '../../../resources/welcomeNote.md?asset' export const getRootDir = () => { - return `${homedir()}\\${appDirectoryName}` + return path.join(homedir(), appDirectoryName) } export const getNotes: GetNotes = async () => {