diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-11 10:40:59 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:40 +0100 |
commit | 5d43dae3699d088698560851cb6f35f3dbc70c69 (patch) | |
tree | a1d68363917e2e576f04096af20e6c5af5cbf1da /client/src/app/core/notification | |
parent | ae71acca14e9420646ca7655e64eb9adc13e3006 (diff) | |
download | PeerTube-5d43dae3699d088698560851cb6f35f3dbc70c69.tar.gz PeerTube-5d43dae3699d088698560851cb6f35f3dbc70c69.tar.zst PeerTube-5d43dae3699d088698560851cb6f35f3dbc70c69.zip |
Try to reduce CSS size
Diffstat (limited to 'client/src/app/core/notification')
-rw-r--r-- | client/src/app/core/notification/peertube-socket.service.ts | 7 |
1 files changed, 3 insertions, 4 deletions
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 { | |||
58 | this.notificationSocket = this.io(environment.apiUrl + '/user-notifications', { | 58 | this.notificationSocket = this.io(environment.apiUrl + '/user-notifications', { |
59 | query: { accessToken: this.auth.getAccessToken() } | 59 | query: { accessToken: this.auth.getAccessToken() } |
60 | }) | 60 | }) |
61 | |||
62 | this.notificationSocket.on('new-notification', (n: UserNotificationServer) => { | ||
63 | this.ngZone.run(() => this.dispatchNotificationEvent('new', n)) | ||
64 | }) | ||
65 | }) | 61 | }) |
66 | 62 | ||
63 | this.notificationSocket.on('new-notification', (n: UserNotificationServer) => { | ||
64 | this.ngZone.run(() => this.dispatchNotificationEvent('new', n)) | ||
65 | }) | ||
67 | } | 66 | } |
68 | 67 | ||
69 | private async initLiveVideosSocket () { | 68 | private async initLiveVideosSocket () { |