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

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;