cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-01-14 10:17:58 +03:00
parent 55f800202e
commit 3cb8b35132

View File

@ -68,8 +68,12 @@ function createWindow(){
// see if the splash screen is disabled...
.executeJavaScript('localStorage.disableSplashScreen')
.then(function(disabled){
splash.webContents
.executeJavaScript(`document.getElementById("version").innerText = "${VERSION}"`)
// update version...
disabled
|| splash.webContents
.executeJavaScript(
`document.getElementById("version").innerText = "${VERSION}"`)
// show/destroy..
disabled ?
splash.destroy()
: splash.show() }) })