Sindbad~EG File Manager

Current Path : /var/www/html/aventurasolar.sumar.com.py/vendor/livewire/livewire/js/util/
Upload File :
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
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists