mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
Simplificar la lógica de verificación del modo crepuscular en la función getIfTwilight
Some checks are pending
Upload to Bunny / upload (push) Waiting to run
Some checks are pending
Upload to Bunny / upload (push) Waiting to run
This commit is contained in:
parent
e7b4f476b1
commit
cec8f93516
1 changed files with 3 additions and 3 deletions
|
@ -313,9 +313,9 @@ const appleIcon = icon({ prefix: "fab", iconName: "apple" });
|
||||||
|
|
||||||
function getIfTwilight() {
|
function getIfTwilight() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const twilight = urlParams.get("twilight");
|
isTwilight = urlParams.has("twilight");
|
||||||
if (twilight) {
|
if (isTwilight) {
|
||||||
isTwilight = true;
|
console.log("Twilight mode enabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue