1
0
Fork 0
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:
Michael Hollister 2025-04-25 09:57:49 -05:00
parent a5fc61fd85
commit 55355a3c57
2 changed files with 9 additions and 4 deletions

View file

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