This commit is contained in:
MeowcaTheoRange 2023-11-12 15:28:06 -06:00
parent f5b65ac533
commit 67b7d61d02

View file

@ -1,9 +1,12 @@
"use client"; "use client";
import { useEffect } from "react";
import Floaty from "../Floaty/Floaty"; import Floaty from "../Floaty/Floaty";
export default function AccessibilityBox() { export default function AccessibilityBox() {
if (window.localStorage.getItem("a11y")) useEffect(() => {
document.body.parentElement?.classList.add("a11y"); if (window.localStorage.getItem("a11y"))
document.body.parentElement?.classList.add("a11y");
}, []);
return ( return (
<Floaty top> <Floaty top>
<input <input