fix: local debug

This commit is contained in:
naiba
2024-12-09 23:11:17 +08:00
parent baf611ea94
commit d1fba95484
5 changed files with 52 additions and 57 deletions
+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();
};
}, []);