Sha256: 1c609168e56051e3f2e5392809c426d98cb1ea44c09061eb55bbcd0955622e6f
Contents?: true
Size: 535 Bytes
Versions: 5
Compression:
Stored size: 535 Bytes
Contents
import axios from 'axios' import { createInertiaApp } from '@inertiajs/inertia-svelte' import { InertiaProgress } from '@inertiajs/progress' document.addEventListener('DOMContentLoaded', () => { const csrfToken = document.querySelector('meta[name=csrf-token]').content axios.defaults.headers.common['X-CSRF-Token'] = csrfToken InertiaProgress.init() createInertiaApp({ id: 'app', resolve: name => import(`../Pages/${name}.svelte`), setup({ el, App, props }) { new App({ target: el, props }) }, }) })
Version data entries
5 entries across 5 versions & 1 rubygems