From 092299891f07326f65b27e050c7aa8a9595b3445 Mon Sep 17 00:00:00 2001 From: zeripath Date: Fri, 19 Feb 2021 10:05:35 +0000 Subject: Move the stopwatches to the eventsource stream (#14588) Move the stopwatches to the eventsource stream Use the /user/events eventsource to update the stopwatches instead of polling /api/v1/user/stopwatches if the eventsource is enabled. Signed-off-by: Andrew Thornton --- web_src/js/features/eventsource.sharedworker.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web_src/js/features/eventsource.sharedworker.js') diff --git a/web_src/js/features/eventsource.sharedworker.js b/web_src/js/features/eventsource.sharedworker.js index bb4f628f6c..a94551e826 100644 --- a/web_src/js/features/eventsource.sharedworker.js +++ b/web_src/js/features/eventsource.sharedworker.js @@ -12,6 +12,7 @@ class Source { this.listen('open'); this.listen('logout'); this.listen('notification-count'); + this.listen('stopwatches'); this.listen('error'); } -- cgit v1.2.3