mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update app.js
This commit is contained in:
parent
bd7cad9984
commit
5a1aba18bc
1 changed files with 7 additions and 1 deletions
8
resources/assets/js/app.js
vendored
8
resources/assets/js/app.js
vendored
|
@ -11,5 +11,11 @@ let token = document.head.querySelector('meta[name="csrf-token"]');
|
|||
if (token) {
|
||||
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
|
||||
} else {
|
||||
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
||||
console.error('CSRF token not found.');
|
||||
}
|
||||
|
||||
window.App = {};
|
||||
|
||||
window.App.boot = function() {
|
||||
new Vue({ el: '#content'});
|
||||
}
|
Loading…
Reference in a new issue