Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit b9fe8ca

Browse files
committed
⚡ Reduce chance of white flash at window spawn
1 parent 5dc7c80 commit b9fe8ca

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/_boot.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,11 @@ function createWindow(settings) {
149149
slashes: true
150150
}));
151151

152-
win.once("ready-to-show", () => {
153-
signale.complete("Frontend window is up!");
154-
win.show();
155-
if (!settings.allowWindowed) {
156-
win.setResizable(false);
157-
}
158-
});
152+
signale.complete("Frontend window created!");
153+
win.show();
154+
if (!settings.allowWindowed) {
155+
win.setResizable(false);
156+
}
159157

160158
signale.watch("Waiting for frontend connection...");
161159
}

0 commit comments

Comments
 (0)