mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-06 06:53:55 +09:00
Use ES modules
This commit is contained in:
6
resources/assets/js/bootstrap.js
vendored
6
resources/assets/js/bootstrap.js
vendored
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
window._ = require('lodash');
|
import _ from 'lodash';
|
||||||
|
window._ = _;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
||||||
@@ -19,7 +20,8 @@ try {
|
|||||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
window.axios = require('axios');
|
import axios from 'axios';
|
||||||
|
window.axios = axios;
|
||||||
|
|
||||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user