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... // see if the splash screen is disabled...
.executeJavaScript('localStorage.disableSplashScreen') .executeJavaScript('localStorage.disableSplashScreen')
.then(function(disabled){ .then(function(disabled){
splash.webContents // update version...
.executeJavaScript(`document.getElementById("version").innerText = "${VERSION}"`) disabled
|| splash.webContents
.executeJavaScript(
`document.getElementById("version").innerText = "${VERSION}"`)
// show/destroy..
disabled ? disabled ?
splash.destroy() splash.destroy()
: splash.show() }) }) : splash.show() }) })