mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
Simplify twilight check in getIfTwilight function
This commit is contained in:
parent
369379b645
commit
66bfa362b3
2 changed files with 9160 additions and 1 deletions
9159
package-lock.json
generated
Normal file
9159
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -313,7 +313,7 @@ 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");
|
const twilight = urlParams.get("twilight");
|
||||||
if (twilight === "true") {
|
if (twilight) {
|
||||||
isTwilight = true;
|
isTwilight = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue