mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-08-05 08:47:02 +00:00
Receivers: Fixed disconnection notification on connection
This commit is contained in:
parent
a5fc61fd85
commit
55355a3c57
2 changed files with 9 additions and 4 deletions
|
@ -16,7 +16,7 @@ window.addEventListener('resize', (event) => calculateQRCodeWidth());
|
|||
|
||||
// Window might be re-created while devices are still connected
|
||||
window.targetAPI.onPing((_event, value: any) => {
|
||||
if (value && connections.length === 0) {
|
||||
if (value && !connections.includes(value.id)) {
|
||||
connections.push(value.id);
|
||||
onConnect(value.id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue