Skip to content

Commit 7f26088

Browse files
committed
remove slash
1 parent 19b9310 commit 7f26088

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/basePath.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import path from 'path';
22

33
import { ipcMain } from 'electron';
44

5+
/**
6+
* This is used to get the base path of the app.
7+
*
8+
* @NOTE - I'm leaving off the trailing slash, because expo has the slash at the start
9+
*/
510
ipcMain.on('getBasePathSync', (event) => {
6-
const basePath = `file://${path.join(process.resourcesPath, 'dist')}/`;
11+
const basePath = `file://${path.join(process.resourcesPath, 'dist')}`;
712
event.returnValue = basePath; // Synchronously return the basePath
813
});

0 commit comments

Comments
 (0)