Fix loading of preload scripts
This commit is contained in:
parent
a8d3a8bfe8
commit
8a8d29e6b9
|
@ -142,7 +142,7 @@ const createMainWindow = () => {
|
||||||
// Create the main window. This'll show our web content.
|
// Create the main window. This'll show our web content.
|
||||||
const window = new BrowserWindow({
|
const window = new BrowserWindow({
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(app.getAppPath(), "preload.js"),
|
preload: path.join(__dirname, "preload.js"),
|
||||||
sandbox: true,
|
sandbox: true,
|
||||||
},
|
},
|
||||||
// The color to show in the window until the web content gets loaded.
|
// The color to show in the window until the web content gets loaded.
|
||||||
|
|
Loading…
Reference in a new issue