This commit is contained in:
2025-03-26 16:02:01 +05:00
parent d95b8dcc62
commit 711a6dddad

View File

@@ -1,13 +1,3 @@
let lastCookie = document.cookie; // Store initial cookies
setInterval(() => {
let currentCookie = document.cookie;
if (currentCookie !== lastCookie) {
console.log("Cookie changed:", currentCookie);
lastCookie = currentCookie; // Update stored cookie
}
}, 1000); // Check every second
function csrf_token()
{
return document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');