changes from server 2025/05/15

This commit is contained in:
root
2025-05-15 00:45:13 +08:00
parent 61ff6d2538
commit 38b89ef2c6
7 changed files with 41 additions and 21 deletions
+5 -5
View File
@@ -17,14 +17,14 @@ const Toast = Swal.mixin({
const notify = new NotifyKhazanah(channel,event,apikey);
notify.channel_subscribe((data) => {
console.log(data);
Toast.fire({
icon: 'info',
title: 'Permohonan Kelulusan Wang Tunai Teller!'
});
const currentPath = window.location.pathname;
if(window.kodcaw == data.cawangan){
Toast.fire({
icon: 'info',
title: 'Permohonan Kelulusan Wang Tunai Teller!'
});
if (currentPath === "/home") {
notify_main();
} else if (currentPath === "/menu") {