1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/assets/js/app.js
2019-08-02 02:14:30 -06:00

21 lines
No EOL
624 B
JavaScript
Vendored

window._ = require('lodash');
window.Popper = require('popper.js').default;
window.pixelfed = window.pixelfed || {};
window.$ = window.jQuery = require('jquery');
require('bootstrap');
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
require('readmore-js');
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.');
}
window.App = window.App || {};
window.App.boot = function() {
new Vue({ el: '#content'});
}