mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
bug chat notification when logout
This commit is contained in:
@ -1,10 +1,16 @@
|
||||
import {showNotificationMessages} from "../components/chat.js";
|
||||
import { showNotificationMessages } from "../components/chat.js";
|
||||
|
||||
showNotificationMessages($("#chat-notification-list"))
|
||||
$(() => {
|
||||
|
||||
setInterval(() => {
|
||||
showNotificationMessages($("#chat-notification-list"))
|
||||
},10000)
|
||||
$("#message-notification-dropdown").on("click",(e) => {
|
||||
showNotificationMessages($("#chat-notification-list"))
|
||||
const chatNotificationInterval = setInterval(() => {
|
||||
showNotificationMessages($("#chat-notification-list"))
|
||||
}, 10000)
|
||||
$("#message-notification-dropdown").on("click", (e) => {
|
||||
showNotificationMessages($("#chat-notification-list"))
|
||||
})
|
||||
$("#btn-log-out").on("click",() => {
|
||||
clearInterval(chatNotificationInterval)
|
||||
console.log("CLEAR")
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user