Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SnapDrop/snapdrop
/ _onVisibilityChange
Method
_onVisibilityChange
client/scripts/network.js:78–81 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
76
}
77
78
_onVisibilityChange() {
79
if
(document.hidden)
return
;
80
this._connect();
81
}
82
83
_isConnected() {
84
return
this._socket && this._socket.readyState === this._socket.OPEN;
Callers
1
constructor
Method · 0.95
Calls
1
_connect
Method · 0.95
Tested by
no test coverage detected