mirror of
https://github.com/bitwarden/browser
synced 2025-01-21 08:47:52 +01:00
short arrow functions
This commit is contained in:
parent
ebf6aee542
commit
74b31daf14
@ -50,9 +50,8 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
|||||||
// .configureLogging(signalR.LogLevel.Information)
|
// .configureLogging(signalR.LogLevel.Information)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
this.signalrConnection.on('ReceiveMessage', async (data: any) => {
|
this.signalrConnection.on('ReceiveMessage',
|
||||||
await this.processNotification(new NotificationResponse(data));
|
(data: any) => this.processNotification(new NotificationResponse(data)));
|
||||||
});
|
|
||||||
this.signalrConnection.onclose(() => {
|
this.signalrConnection.onclose(() => {
|
||||||
this.connected = false;
|
this.connected = false;
|
||||||
this.reconnect();
|
this.reconnect();
|
||||||
@ -136,9 +135,7 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
|||||||
} catch { }
|
} catch { }
|
||||||
|
|
||||||
if (!this.connected) {
|
if (!this.connected) {
|
||||||
this.reconnectTimer = setTimeout(() => {
|
this.reconnectTimer = setTimeout(() => this.reconnect(), 120000);
|
||||||
this.reconnect();
|
|
||||||
}, 120000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user