Skip to content

Commit 3b553be

Browse files
committed
Update bootstrap.ts
1 parent 6330d65 commit 3b553be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import axios from './helpers/axios';
22

3+
// @ts-ignore
34
window._ = require('lodash');
45

56
/**
@@ -9,9 +10,11 @@ window._ = require('lodash');
910
*/
1011

1112
try {
13+
// @ts-ignore
1214
window.$ = window.jQuery = require('jquery');
1315
} catch (e) {}
1416

17+
// @ts-ignore
1518
window.axios = axios;
1619

1720
/**
@@ -23,7 +26,10 @@ window.axios = axios;
2326
let token = document.head.querySelector('meta[name="csrf-token"]');
2427

2528
if (token) {
29+
// @ts-ignore
2630
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
31+
32+
// @ts-ignore
2733
window.X_CSRF_TOKEN = token.content;
2834
} else {
2935
console.error('CSRF token not found in document.');

0 commit comments

Comments
 (0)