fix: local debug

This commit is contained in:
naiba committed 2024-12-09 23:11:17 +08:00
1 parent b53688b4f4
commit e2027a0ef0
5 files changed
+52 -57

No files matched your search

+1 -3
View File
@@ -67,9 +67,7 @@ const FMComponent: React.FC<FMProps & JSX.IntrinsicElements["div"]> = ({ wsUrl,
useEffect(() => {
return () => {
if (wsRef.current) {
wsRef.current.close();
}
wsRef.current?.close();
};
}, []);