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:
parent
9a7924ebce
commit
0d444239f0
3 changed files with 15 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue