We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b9310 commit 7f26088Copy full SHA for 7f26088
src/main/basePath.ts
@@ -2,7 +2,12 @@ import path from 'path';
2
3
import { ipcMain } from 'electron';
4
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
+ */
10
ipcMain.on('getBasePathSync', (event) => {
- const basePath = `file://${path.join(process.resourcesPath, 'dist')}/`;
11
+ const basePath = `file://${path.join(process.resourcesPath, 'dist')}`;
12
event.returnValue = basePath; // Synchronously return the basePath
13
});
0 commit comments