MCPcopy
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

constructorMethod · 0.95

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected