diff options
author | 0neGal <mail@0negal.com> | 2024-12-20 19:36:29 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-12-20 19:36:29 +0100 |
commit | 8910ebf039196643bb15f096140fe0a4c20f6446 (patch) | |
tree | 675fc370665708afcd67cf665086aefc35e2aba7 /src/app/js | |
parent | 957e8a9ad0b7bfe33079ca2d6a5dc097fdc2daa9 (diff) | |
download | Viper-8910ebf039196643bb15f096140fe0a4c20f6446.tar.gz Viper-8910ebf039196643bb15f096140fe0a4c20f6446.zip |
hide server status when offline
Diffstat (limited to 'src/app/js')
-rw-r--r-- | src/app/js/request.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/js/request.js b/src/app/js/request.js index bec9d7c..3639dad 100644 --- a/src/app/js/request.js +++ b/src/app/js/request.js @@ -33,6 +33,8 @@ let state_action = (is_online) => { true, false, document.querySelectorAll(".requires-internet") ) + + serverstatus.style.opacity = "1.0"; } else { // show toast if (! sent_error_toast) { @@ -49,6 +51,8 @@ let state_action = (is_online) => { document.querySelectorAll(".requires-internet") ) + serverstatus.style.opacity = "0.0"; + // close mod browser try { require("./browser").toggle(false); |