From cc68eb825b87c27cf09964699a5c64f93b4274a9 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 25 Oct 2021 10:24:53 +0200 Subject: [PATCH] DEV: drops jquery usage from ajax wizards lib (#14694) --- app/assets/javascripts/wizard/lib/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/wizard/lib/ajax.js b/app/assets/javascripts/wizard/lib/ajax.js index 670747e8079..3889069f71e 100644 --- a/app/assets/javascripts/wizard/lib/ajax.js +++ b/app/assets/javascripts/wizard/lib/ajax.js @@ -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;