DEV: drops jquery usage from ajax wizards lib (#14694)

This commit is contained in:
Joffrey JAFFEUX 2021-10-25 10:24:53 +02:00 committed by GitHub
parent 05dda755ed
commit cc68eb825b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ let token;
export function getToken() {
if (!token) {
token = $('meta[name="csrf-token"]').attr("content");
token = document.querySelector('meta[name="csrf-token"]')?.content;
}
return token;