mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-23 06:42:41 +00:00
refactor: disable WebSocket notifications in inbound and index HTML files
This commit is contained in:
parent
28aa2d0a0c
commit
d2201c8fd4
2 changed files with 2 additions and 22 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue