1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00

short arrow functions

This commit is contained in:
Kyle Spearrin 2018-08-22 13:48:51 -04:00
parent ebf6aee542
commit 74b31daf14

View File

@ -50,9 +50,8 @@ export class NotificationsService implements NotificationsServiceAbstraction {
// .configureLogging(signalR.LogLevel.Information)
.build();
this.signalrConnection.on('ReceiveMessage', async (data: any) => {
await this.processNotification(new NotificationResponse(data));
});
this.signalrConnection.on('ReceiveMessage',
(data: any) => this.processNotification(new NotificationResponse(data)));
this.signalrConnection.onclose(() => {
this.connected = false;
this.reconnect();
@ -136,9 +135,7 @@ export class NotificationsService implements NotificationsServiceAbstraction {
} catch { }
if (!this.connected) {
this.reconnectTimer = setTimeout(() => {
this.reconnect();
}, 120000);
this.reconnectTimer = setTimeout(() => this.reconnect(), 120000);
}
}
}