From 5d43dae3699d088698560851cb6f35f3dbc70c69 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Mar 2021 10:40:59 +0100 Subject: Try to reduce CSS size --- client/src/app/core/notification/peertube-socket.service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/notification/peertube-socket.service.ts b/client/src/app/core/notification/peertube-socket.service.ts index bc3f7b893..eab1c63f2 100644 --- a/client/src/app/core/notification/peertube-socket.service.ts +++ b/client/src/app/core/notification/peertube-socket.service.ts @@ -58,12 +58,11 @@ export class PeerTubeSocket { this.notificationSocket = this.io(environment.apiUrl + '/user-notifications', { query: { accessToken: this.auth.getAccessToken() } }) - - this.notificationSocket.on('new-notification', (n: UserNotificationServer) => { - this.ngZone.run(() => this.dispatchNotificationEvent('new', n)) - }) }) + this.notificationSocket.on('new-notification', (n: UserNotificationServer) => { + this.ngZone.run(() => this.dispatchNotificationEvent('new', n)) + }) } private async initLiveVideosSocket () { -- cgit v1.2.3