aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/index.js b/js/src/index.js
index a3858dd24..84a27880e 100644
--- a/js/src/index.js
+++ b/js/src/index.js
@@ -18,11 +18,11 @@ import Util from './util'
* --------------------------------------------------------------------------
*/
-if (typeof jQuery === 'undefined') {
- throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
-}
-
(() => {
+ if (typeof jQuery === 'undefined') {
+ throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.')
+ }
+
const version = $.fn.jquery.split(' ')[0].split('.')
const min = 3
const max = 4