mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
short arrow functions
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user