removed startup flashbang
This commit is contained in:
parent
b8a15736fd
commit
a93e1d4269
3 changed files with 8 additions and 5 deletions
BIN
resources/icons/icon-test.ico
Normal file
BIN
resources/icons/icon-test.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
|
@ -54,6 +54,8 @@ export class Win {
|
||||||
vibrancy: "dark",
|
vibrancy: "dark",
|
||||||
transparent: process.platform === "darwin",
|
transparent: process.platform === "darwin",
|
||||||
hasShadow: false,
|
hasShadow: false,
|
||||||
|
show: false,
|
||||||
|
backgroundColor: "#1E1E1E",
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
sandbox: true,
|
sandbox: true,
|
||||||
|
@ -64,7 +66,6 @@ export class Win {
|
||||||
plugins: true,
|
plugins: true,
|
||||||
nodeIntegrationInWorker: false,
|
nodeIntegrationInWorker: false,
|
||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
|
|
||||||
preload: path.join(this.paths.srcPath, "./preload/cider-preload.js"),
|
preload: path.join(this.paths.srcPath, "./preload/cider-preload.js"),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -89,6 +90,9 @@ export class Win {
|
||||||
this.startWebServer();
|
this.startWebServer();
|
||||||
|
|
||||||
this.win = new electron.BrowserWindow(this.options);
|
this.win = new electron.BrowserWindow(this.options);
|
||||||
|
this.win.on("ready-to-show", () => {
|
||||||
|
this.win.show();
|
||||||
|
});
|
||||||
const ws = new wsapi(this.win)
|
const ws = new wsapi(this.win)
|
||||||
ws.InitWebSockets()
|
ws.InitWebSockets()
|
||||||
// and load the renderer.
|
// and load the renderer.
|
||||||
|
@ -156,8 +160,6 @@ export class Win {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
|
|
||||||
|
|
||||||
res.render("main", this.EnvironmentVariables);
|
res.render("main", this.EnvironmentVariables);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -58,8 +58,9 @@ hr {
|
||||||
}
|
}
|
||||||
|
|
||||||
body[loading] {
|
body[loading] {
|
||||||
opacity: 0.5;
|
.app-navigation {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body[platform='linux'] {
|
body[platform='linux'] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue