fix(desktop): use CJS for preload script to fix sandbox loading error
This commit is contained in:
@@ -113,7 +113,7 @@ const createWindow = async () => {
|
||||
height: 800,
|
||||
show: false,
|
||||
webPreferences: {
|
||||
preload: join(__dirname, '../preload/index.mjs'),
|
||||
preload: join(__dirname, '../preload/index.js'),
|
||||
sandbox: true,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user