🎨 Improve desktop boot interface

This commit is contained in:
Daniel 2023-06-22 21:37:30 +08:00
parent 004f030119
commit 9aa8f05a33
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -398,9 +398,9 @@ const initKernel = (workspace, port, lang) => {
icon: path.join(appDir, "stage", "icon-large.png"),
});
let bootIndex = path.join(appDir, "app", "electron", "index.html");
let bootIndex = path.join(appDir, "app", "electron", "boot.html");
if (isDevEnv) {
bootIndex = path.join(appDir, "electron", "index.html");
bootIndex = path.join(appDir, "electron", "boot.html");
}
bootWindow.loadFile(bootIndex);
bootWindow.show();