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 f3c64a6 commit 45176cbCopy full SHA for 45176cb
src/preload.ts
@@ -1,12 +1,10 @@
1
-import path from 'path';
2
-
3
import { contextBridge, ipcRenderer, IpcRendererEvent } from 'electron';
4
5
/**
6
* Expose the basePath to the renderer process.
7
*/
8
contextBridge.exposeInMainWorld('electron', {
9
- basePath: `file://${path.join(process.resourcesPath, 'dist')}/`,
+ basePath: `file://${process.resourcesPath}/dist/`,
10
});
11
12
// White-listed channels.
0 commit comments