We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6330d65 commit 3b553beCopy full SHA for 3b553be
resources/assets/scripts/bootstrap.js resources/assets/scripts/bootstrap.tsresources/assets/scripts/bootstrap.js renamed to resources/assets/scripts/bootstrap.ts
@@ -1,5 +1,6 @@
1
import axios from './helpers/axios';
2
3
+// @ts-ignore
4
window._ = require('lodash');
5
6
/**
@@ -9,9 +10,11 @@ window._ = require('lodash');
9
10
*/
11
12
try {
13
+ // @ts-ignore
14
window.$ = window.jQuery = require('jquery');
15
} catch (e) {}
16
17
18
window.axios = axios;
19
20
@@ -23,7 +26,10 @@ window.axios = axios;
23
26
let token = document.head.querySelector('meta[name="csrf-token"]');
24
27
25
28
if (token) {
29
30
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
31
+
32
33
window.X_CSRF_TOKEN = token.content;
34
} else {
35
console.error('CSRF token not found in document.');
0 commit comments