* initial documentation changes * editing layouts terminology * update to match other files * move javascripts to components/lib * fix: dockerfile * update based on Mikes updates to the javascripts directory * update components/README.md Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
6 lines
170 B
TypeScript
6 lines
170 B
TypeScript
export default function getCsrf() {
|
|
const csrfEl = document.querySelector('meta[name="csrf-token"]')
|
|
if (!csrfEl) return ''
|
|
return csrfEl.getAttribute('content')
|
|
}
|