wip
This commit is contained in:
1 parent
fdf6adf501
commit
d95b8dcc62
1 file changed
+10
+10
@@ -1,3 +1,13 @@
|
||||
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');
|
||||
|
||||
Reference in new issue
Block a user