mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
55f800202e
commit
3cb8b35132
@ -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() }) })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user