client: init timeout should not be needed anymore; preload js modules asap if supported
This commit is contained in:
parent
8737385a0e
commit
58c1fc3c32
2 changed files with 12 additions and 12 deletions
|
|
@ -11,24 +11,20 @@ uiLoading(locales('loading_server'))
|
|||
|
||||
function init() {
|
||||
|
||||
setTimeout(()=>{
|
||||
|
||||
ipc.init(()=>{
|
||||
ipc.init(()=>{
|
||||
|
||||
|
||||
document.title = TITLE
|
||||
document.title = TITLE
|
||||
|
||||
ipc.send('open', {hotReload: backup.exists})
|
||||
ipc.send('open', {hotReload: backup.exists})
|
||||
|
||||
window.onunload = ()=>{
|
||||
ipc.send('close')
|
||||
}
|
||||
window.onunload = ()=>{
|
||||
ipc.send('close')
|
||||
}
|
||||
|
||||
backup.load()
|
||||
backup.load()
|
||||
|
||||
})
|
||||
|
||||
}, 100)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue