diff --git a/web_src/js/features/eventsource.sharedworker.js b/web_src/js/features/eventsource.sharedworker.js
index e3c60ce0db..bb4f628f6c 100644
--- a/web_src/js/features/eventsource.sharedworker.js
+++ b/web_src/js/features/eventsource.sharedworker.js
@@ -16,7 +16,7 @@ class Source {
   }
 
   register(port) {
-    if (!this.clients.includes(port)) return;
+    if (this.clients.includes(port)) return;
 
     this.clients.push(port);
 
diff --git a/web_src/js/features/notification.js b/web_src/js/features/notification.js
index aa1b48d183..b0cc1cda44 100644
--- a/web_src/js/features/notification.js
+++ b/web_src/js/features/notification.js
@@ -29,7 +29,7 @@ async function receiveUpdateCount(event) {
       notificationCount.classList.add('hidden');
     }
 
-    notificationCount.text(`${data.Count}`);
+    notificationCount.textContent = `${data.Count}`;
     await updateNotificationTable();
   } catch (error) {
     console.error(error, event);