electron splash screen

This commit is contained in:
Jan Prochazka
2020-04-10 21:53:00 +02:00
parent 5030c673e6
commit 01e0949b28
4 changed files with 60 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
body {
background: #666;
}
div {
color: white;
font-size: 25pt;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
margin-top: 40px;
}

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="splash.css">
</head>
<body>
<div>Starting DbGate...</div>
</body>
</html>

View File

@@ -4,7 +4,9 @@ export default function resolveApi() {
if (electron) {
const port = electron.remote.getGlobal('port');
return `http://localhost:${port}`;
if (port) {
return `http://localhost:${port}`;
}
}
}