Simplify twilight check in getIfTwilight function

This commit is contained in:
mr. m 🤙 2024-12-12 09:47:57 +00:00
parent 369379b645
commit 66bfa362b3
2 changed files with 9160 additions and 1 deletions

9159
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -313,7 +313,7 @@ const appleIcon = icon({ prefix: "fab", iconName: "apple" });
function getIfTwilight() {
const urlParams = new URLSearchParams(window.location.search);
const twilight = urlParams.get("twilight");
if (twilight === "true") {
if (twilight) {
isTwilight = true;
}
}