mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +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() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const twilight = urlParams.get("twilight");
|
||||
if (twilight === "true") {
|
||||
if (twilight) {
|
||||
isTwilight = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue