| Current Path : /var/www/html/aventurasolar.sumar.com.py/vendor/livewire/livewire/js/util/ |
| Current File : /var/www/html/aventurasolar.sumar.com.py/vendor/livewire/livewire/js/util/getCsrfToken.js |
export function getCsrfToken() {
const tokenTag = document.head.querySelector('meta[name="csrf-token"]')
let token
if (!tokenTag) {
if (!window.livewire_token) {
throw new Error('Whoops, looks like you haven\'t added a "csrf-token" meta tag')
}
token = window.livewire_token
} else {
token = tokenTag.content
}
return token
}