aboutsummaryrefslogtreecommitdiff
path: root/views/script/core_viewer.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-10 16:47:40 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-10 16:47:40 +0200
commit2fcdada6864751ec708ace9ccd8c28d6d99aab06 (patch)
treef5538bf3d5111cc6eff189a75d6780c137e1b56f /views/script/core_viewer.js
parent8fbfcf981608248929b202cb055000407e6d6c3d (diff)
downloadkartik-client-2fcdada6864751ec708ace9ccd8c28d6d99aab06.tar.gz
kartik-client-2fcdada6864751ec708ace9ccd8c28d6d99aab06.tar.bz2
kartik-client-2fcdada6864751ec708ace9ccd8c28d6d99aab06.zip
New loading screen
Diffstat (limited to 'views/script/core_viewer.js')
-rw-r--r--views/script/core_viewer.js7
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) {