mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +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() {
|
||||
if (!token) {
|
||||
token = $('meta[name="csrf-token"]').attr("content");
|
||||
token = document.querySelector('meta[name="csrf-token"]')?.content;
|
||||
}
|
||||
|
||||
return token;
|
||||
|
|
Loading…
Reference in New Issue
Block a user