From d29f4489dedf4268abd3391b01a2fe068772e385 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Tue, 12 Dec 2023 14:09:12 -0600 Subject: [PATCH] fix --- resources/assets/js/bootstrap.js | 22 ---------------------- resources/assets/js/snipeit.js | 2 ++ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index cec13850d8..0edde36750 100755 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -19,28 +19,6 @@ jQuery.fn.uitooltip = jQuery.fn.tooltip; */ require('bootstrap-less'); -/** - * Vue is a modern JavaScript library for building interactive web interfaces - * using reactive data binding and reusable components. Vue's API is clean - * and simple, leaving you to focus on building your next great project. - */ - -window.Vue = require('vue').default; -window.eventHub = new Vue(); -require('vue-resource'); - -/** - * We'll register a HTTP interceptor to attach the "CSRF" header to each of - * the outgoing requests issued by this application. The CSRF middleware - * included with Laravel will automatically verify the header's value. - */ - -Vue.http.interceptors.push(function (request, next) { - request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken); - - next(); -}); - // require('admin-lte'); // require('chart.js'); diff --git a/resources/assets/js/snipeit.js b/resources/assets/js/snipeit.js index a834e22ba0..f978ecd838 100755 --- a/resources/assets/js/snipeit.js +++ b/resources/assets/js/snipeit.js @@ -4,6 +4,8 @@ // window.jQuery = jQuery // window.$ = jQuery +require('./bootstrap'); + /** * Module containing core application logic. * @param {jQuery} $ Insulated jQuery object