From ead1d6fffb351721c0a292d1a24938e99d518443 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sun, 6 Dec 2020 14:14:03 +0100 Subject: [PATCH] Bootstrap requires jQuery --- webgoat-container/src/main/resources/static/js/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webgoat-container/src/main/resources/static/js/main.js b/webgoat-container/src/main/resources/static/js/main.js index 0f384e981..056024ec2 100644 --- a/webgoat-container/src/main/resources/static/js/main.js +++ b/webgoat-container/src/main/resources/static/js/main.js @@ -49,6 +49,10 @@ require.config({ underscore: { exports: "_" }, + bootstrap: { + deps: ['jquery'], + exports: 'Bootstrap' + }, backbone: { deps: ['underscore', 'jquery'], exports: 'Backbone' @@ -67,6 +71,6 @@ require([ 'underscore', 'backbone', 'bootstrap', - 'goatApp/goatApp'], function($,jqueryBase,jqueryVuln,jqueryui,_,Backbone,bootstrap,Goat){ + 'goatApp/goatApp'], function($,jqueryBase,jqueryVuln,jqueryui,_,Backbone,Bootstrap,Goat){ Goat.initApp(); }); \ No newline at end of file