summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/eventsource.sharedworker.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/eventsource.sharedworker.js')
-rw-r--r--web_src/js/features/eventsource.sharedworker.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web_src/js/features/eventsource.sharedworker.js b/web_src/js/features/eventsource.sharedworker.js
index a94551e826..6a6ee154db 100644
--- a/web_src/js/features/eventsource.sharedworker.js
+++ b/web_src/js/features/eventsource.sharedworker.js
@@ -46,9 +46,8 @@ class Source {
listen(eventType) {
if (this.listening[eventType]) return;
this.listening[eventType] = true;
- const self = this;
this.eventSource.addEventListener(eventType, (event) => {
- self.notifyClients({
+ this.notifyClients({
type: eventType,
data: event.data
});