Skip to content

Commit 625a9ba

Browse files
committed
🤖 fix: Update preload path in desktop/main.ts
The preload script is built to dist/preload.js but desktop/main.js is now in dist/desktop/, so the relative path needs to be ../preload.js instead of preload.js. Fixes E2E tests failing to load the app - window wasn't initializing because preload couldn't be found.
1 parent b5b1e44 commit 625a9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/desktop/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function createWindow() {
367367
webPreferences: {
368368
nodeIntegration: false,
369369
contextIsolation: true,
370-
preload: path.join(__dirname, "preload.js"),
370+
preload: path.join(__dirname, "../preload.js"),
371371
},
372372
title: "cmux - coder multiplexer",
373373
// Hide menu bar on Linux by default (like VS Code)

0 commit comments

Comments
 (0)