diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index 163cd1e3..b7b851a5 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -121,14 +121,15 @@ function startSplashScreen() { center: true, frame: false, closable: false, + resizable: false, skipTaskbar: true, + alwaysOnTop: true, show: true }); + splashScreen.setIgnoreMouseEvents(true); - app.once('browser-window-focus', () => { - app.once('browser-window-focus', () => { - splashScreen.destroy(); - }); + app.once('browser-window-created', () => { + splashScreen.destroy(); }); const loadSplashscreenUrl = path.join(__dirname, 'splashscreen', 'index.html') + '?imgPath=' + imageFile; diff --git a/ElectronNET.Host/splashscreen/index.html b/ElectronNET.Host/splashscreen/index.html index f434344d..ddd85e22 100644 --- a/ElectronNET.Host/splashscreen/index.html +++ b/ElectronNET.Host/splashscreen/index.html @@ -1,4 +1,4 @@ - +
@@ -15,7 +15,7 @@ } -