From dcfac7ebb9db74fc89b3c1dd59e028b5b1e47152 Mon Sep 17 00:00:00 2001 From: Pavel Mironchik Date: Fri, 29 Jan 2021 00:45:58 +0600 Subject: [PATCH] Do not include jQuery twice. --- resources/assets/js/bootstrap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index 9cf83d674..216ee88f8 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -8,7 +8,9 @@ window._ = require('lodash'); */ try { - window.$ = window.jQuery = require('jquery'); + if (!window.$) { + window.$ = window.jQuery = require('jquery'); + } //require('bootstrap-sass'); } catch (e) {}