Disable notifications on new 'reconnect' event for laptop resume
This commit is contained in:
@@ -39,6 +39,12 @@ MessageReceiver.prototype.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
this.count = 0;
|
||||
if (this.hasConnected) {
|
||||
const ev = new Event('reconnect');
|
||||
this.dispatchEvent(ev);
|
||||
}
|
||||
|
||||
this.hasConnected = true;
|
||||
|
||||
if (this.socket && this.socket.readyState !== WebSocket.CLOSED) {
|
||||
|
Reference in New Issue
Block a user