Skip to content

Commit

Permalink
[example] Use app.whenReady instead of ready event
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Jun 1, 2022
1 parent fa2a48f commit e9d14b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/main/index.js
Expand Up @@ -5,7 +5,7 @@ const serveNext = require("next-electron-server");
// Register your own scheme and host
serveNext("next://app");

app.on("ready", async () => {
app.whenReady().then(async () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
Expand Down

0 comments on commit e9d14b7

Please sign in to comment.