mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 04:16:00 +00:00
bundled electron app starts without error
This commit is contained in:
@@ -30,9 +30,9 @@
|
||||
|
||||
$: effect = useEffect(() => {
|
||||
if (eventName) {
|
||||
socket.on(eventName, handleInfo);
|
||||
socket().on(eventName, handleInfo);
|
||||
return () => {
|
||||
socket.off(eventName, handleInfo);
|
||||
socket().off(eventName, handleInfo);
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
|
||||
Reference in New Issue
Block a user