mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
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 <art27@cantab.net>
This commit is contained in:
@ -12,6 +12,7 @@ class Source {
|
||||
this.listen('open');
|
||||
this.listen('logout');
|
||||
this.listen('notification-count');
|
||||
this.listen('stopwatches');
|
||||
this.listen('error');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user