Commit 46e8c8d
committed
fix(desktop): point main to preload/index.mjs (electron-vite outputs .mjs not .js)
Onboarding step 2 was showing 'Renderer is not connected to the main process'
because BrowserWindow.webPreferences.preload pointed at .js while
electron-vite outputs .mjs. Electron 33+ supports .mjs preload natively.
Signed-off-by: hqhq1025 <1506751656@qq.com>1 parent a11f416 commit 46e8c8d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments