Skip to content

Commit

Permalink
Awwow uwuser to specifwy kawaii url pawameter in addition to uwu! (#1)
Browse files Browse the repository at this point in the history
* Awwow uwuser to specifwy kawaii url pawameter in addition to uwu!

* shorten

---------

Co-authored-by: Patrick Martin <[email protected]>
  • Loading branch information
BomberFish and thonkinator authored May 3, 2024
1 parent 6c36ad3 commit 56e6a67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import "styles/style.css";
<ViewTransitions />
<script>
function uwu() {
const search = new URLSearchParams(document.location.search);
if (
new URLSearchParams(document.location.search).has("uwu") &&
(search.has("uwu") || search.has("kawaii")) &&
!document.body.classList.contains("uwu")
) {
document.body.classList.add("uwu");
Expand Down

0 comments on commit 56e6a67

Please sign in to comment.