Skip to content

Commit 45176cb

Browse files
committed
remove path from preload
1 parent f3c64a6 commit 45176cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/preload.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import path from 'path';
2-
31
import { contextBridge, ipcRenderer, IpcRendererEvent } from 'electron';
42

53
/**
64
* Expose the basePath to the renderer process.
75
*/
86
contextBridge.exposeInMainWorld('electron', {
9-
basePath: `file://${path.join(process.resourcesPath, 'dist')}/`,
7+
basePath: `file://${process.resourcesPath}/dist/`,
108
});
119

1210
// White-listed channels.

0 commit comments

Comments
 (0)