bundled electron app starts without error

This commit is contained in:
Jan Prochazka
2021-12-16 13:25:57 +01:00
parent e636987f31
commit 588b8b23f9
17 changed files with 91 additions and 59 deletions

View File

@@ -66,9 +66,9 @@
});
function onSession(sid) {
if (sid) {
socket.on(`session-recordset-${sid}`, handleResultSet);
socket().on(`session-recordset-${sid}`, handleResultSet);
return () => {
socket.off(`session-recordset-${sid}`, handleResultSet);
socket().off(`session-recordset-${sid}`, handleResultSet);
};
}
return () => {};

View File

@@ -22,9 +22,9 @@
function registerRunnerDone(rid) {
if (rid) {
socket.on(`runner-done-${rid}`, handleRunnerDone);
socket().on(`runner-done-${rid}`, handleRunnerDone);
return () => {
socket.off(`runner-done-${rid}`, handleRunnerDone);
socket().off(`runner-done-${rid}`, handleRunnerDone);
};
} else {
return () => {};

View File

@@ -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 () => {};