mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:53:50 +08:00
DEV: drops jquery usage from ajax wizards lib (#14694)
This commit is contained in:
parent
05dda755ed
commit
cc68eb825b
|
@ -7,7 +7,7 @@ let token;
|
||||||
|
|
||||||
export function getToken() {
|
export function getToken() {
|
||||||
if (!token) {
|
if (!token) {
|
||||||
token = $('meta[name="csrf-token"]').attr("content");
|
token = document.querySelector('meta[name="csrf-token"]')?.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
return token;
|
return token;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user