From 83ee87699b33af34d09de549b3447d31e47beef9 Mon Sep 17 00:00:00 2001
From: ByteDice
Date: Mon, 13 Jul 2026 13:02:14 +0200
Subject: [PATCH] made the fake loading button be correctly toggled when
entering the website
---
global/globalScript.js | 4 ++--
global/loadingScreen.js | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/global/globalScript.js b/global/globalScript.js
index f42928f..bca46cd 100644
--- a/global/globalScript.js
+++ b/global/globalScript.js
@@ -203,8 +203,8 @@ document.addEventListener("DOMContentLoaded", async function () {
return
}
- if (fakeLoading != "true") {
- removeLoadingScreen(true)
+ if (!fakeLoading) {
+ removeLoadingScreen()
}
else {
setLoadingProgress("Cleaning up...")
diff --git a/global/loadingScreen.js b/global/loadingScreen.js
index b7c8013..a274aaf 100644
--- a/global/loadingScreen.js
+++ b/global/loadingScreen.js
@@ -16,7 +16,7 @@ loadingScreenEl.innerHTML = `
@@ -38,7 +38,7 @@ async function loadTips() {
}
-const fakeLoading = localStorage["fakeLoading"] || "true"
+const fakeLoading = localStorage["fakeLoading"] != "false"
let selectedTip = "undefined"
@@ -94,8 +94,8 @@ function removeLoadingScreen() {
}
-function setShowLoading(state) {
- localStorage["fakeLoading"] = state
+function setShowFakeLoading(state) {
+ localStorage["fakeLoading"] = state.toString()
}