This commit is contained in:
2024-10-01 19:38:25 +05:00
parent 3a685fdb55
commit 9192db124a

View File

@@ -20,10 +20,17 @@ async function postData(url, data) {
} }
} }
function csrf_token()
{
return document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
}
async function fetchCardHistory() { async function fetchCardHistory() {
let cardHistoryDetailContainer = document.getElementById('card-history-details'); let cardHistoryDetailContainer = document.getElementById('card-history-details');
postData('/fetch-card-history') postData('/fetch-card-history', {
'_token': csrf_token()
})
.then(response => { .then(response => {
if (response.errCode != 0) { if (response.errCode != 0) {
Nova.error('Barlap bolmady, tor näsazlygy') Nova.error('Barlap bolmady, tor näsazlygy')