1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-06 09:12:50 +00:00

Changed ping handler handling

This commit is contained in:
Michael Hollister 2025-01-08 18:56:03 -06:00
parent 9a7924ebce
commit 0d444239f0
3 changed files with 15 additions and 3 deletions

View file

@ -10,7 +10,7 @@ let connections = [];
// Window might be re-created while devices are still connected
window.targetAPI.onPing((_event, value: any) => {
if (connections.length === 0) {
if (value && connections.length === 0) {
connections.push(value.id);
onConnect(value.id);
}