From e6f0fc593cf72336b4f80ffcaadf3cdd8f444bd4 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 10 Oct 2024 23:38:49 +0300 Subject: [PATCH] web/app: remove debug log --- web/src/App.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 3338e23..1bee2dc 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -27,18 +27,10 @@ function App() { const client = useMemo(() => new Client(new WSClient("/_gomuks/websocket")), []) const connState = useEventAsState(client.rpc.connect) const clientState = useEventAsState(client.state) + ;((window as unknown) as { client: Client }).client = client useEffect(() => { - ((window as unknown) as { client: Client }).client = client - - // TODO remove this debug log - const unlistenDebug = client.rpc.event.listen(ev => { - console.debug("Received event:", ev) - }) client.rpc.start() - return () => { - unlistenDebug() - client.rpc.stop() - } + return () => client.rpc.stop() }, [client]) if (connState?.error) { @@ -59,7 +51,7 @@ function App() { } else { return - + }