fix comms
This commit is contained in:
+4
-1
@@ -25,7 +25,10 @@ export function VersionCheck() {
|
||||
const [count, setCount] = useState<string | number>("...");
|
||||
const [debug, setDebug] = comms.var("debug");
|
||||
|
||||
useKey("f2", () => setDebug(!debug));
|
||||
useKey("F2", () => {
|
||||
setDebug((x) => !x);
|
||||
});
|
||||
// console.log(`Debug mode ${debug ? "enabled" : "disabled"}`);
|
||||
|
||||
useEffect(() => {
|
||||
const es = new ReconnectingEventSource(`/api/active`, {});
|
||||
|
||||
+1
-1
@@ -47,9 +47,9 @@ export default function RootLayout({
|
||||
/>
|
||||
<Providers>
|
||||
<AnimatePresence mode="wait">{children}</AnimatePresence>
|
||||
<VersionCheck />
|
||||
</Providers>
|
||||
<Toaster theme="dark" richColors closeButton />
|
||||
<VersionCheck />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user