diff options
Diffstat (limited to 'views/script/core_viewer.js')
-rw-r--r-- | views/script/core_viewer.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/script/core_viewer.js b/views/script/core_viewer.js index eac3766..a538b99 100644 --- a/views/script/core_viewer.js +++ b/views/script/core_viewer.js @@ -2,9 +2,14 @@ const webview = document.getElementById('wb'); try { webview.addEventListener('dom-ready', () => { - document.getElementById('dummyloader').style.display = "none"; + setTimeout(() => { + document.getElementById('dummyloader').style.display = "none"; + }, 5000) require('@electron/remote').getCurrentWindow().log(" * " + webview.getURL()); require('@electron/remote').getCurrentWindow().focus(); + if (location.hash === "#ready") { + require('@electron/remote').webContents.fromId(webview.getWebContentsId()).send("ready", true); + } webview.focus(); try { if (require('@electron/remote').getCurrentWindow().debug) { |