From d2201c8fd4c16e30711a37037cd6d74712556975 Mon Sep 17 00:00:00 2001 From: lolka1333 Date: Sun, 14 Dec 2025 12:27:46 +0100 Subject: [PATCH] refactor: disable WebSocket notifications in inbound and index HTML files --- web/html/inbounds.html | 12 +----------- web/html/index.html | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/web/html/inbounds.html b/web/html/inbounds.html index 5ca21484..4e1149ae 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -1645,17 +1645,7 @@ } }); - // Listen for notifications - window.wsClient.on('notification', (payload) => { - if (payload && payload.title) { - const type = payload.level || 'info'; - this.$notification[type]({ - message: payload.title, - description: payload.message || '', - duration: 4.5, - }); - } - }); + // Notifications disabled - white notifications are not needed // Fallback to polling if WebSocket fails window.wsClient.on('error', () => { diff --git a/web/html/index.html b/web/html/index.html index c82e9503..bbbbb708 100644 --- a/web/html/index.html +++ b/web/html/index.html @@ -1161,17 +1161,7 @@ } }); - // Listen for notifications - window.wsClient.on('notification', (payload) => { - if (payload && payload.title) { - const type = payload.level || 'info'; - this.$notification[type]({ - message: payload.title, - description: payload.message || '', - duration: 4.5, - }); - } - }); + // Notifications disabled - white notifications are not needed // Fallback to polling if WebSocket fails window.wsClient.on('error', () => {