diff --git a/desktop/src/main.ts b/desktop/src/main.ts index 5a3e3dac4420c12495fbefefec238410869ef6b7..242303ccfdb11a5bbadf946121b90ae09fcbb1c1 100644 --- a/desktop/src/main.ts +++ b/desktop/src/main.ts @@ -142,7 +142,7 @@ const createMainWindow = () => { // Create the main window. This'll show our web content. const window = new BrowserWindow({ webPreferences: { - preload: path.join(app.getAppPath(), "preload.js"), + preload: path.join(__dirname, "preload.js"), sandbox: true, }, // The color to show in the window until the web content gets loaded.