[tor-commits] [atlas/master] Ensure that bootstrap loads after jQuery

irl at torproject.org irl at torproject.org
Sun Nov 26 21:21:10 UTC 2017


commit 891a5fca398b0a3ec0256c5c2b176f24c230e386
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Sun Nov 26 20:51:28 2017 +0000

    Ensure that bootstrap loads after jQuery
---
 js/main.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/js/main.js b/js/main.js
index cc18403..69de082 100644
--- a/js/main.js
+++ b/js/main.js
@@ -3,6 +3,9 @@
 // based on work done by @jrburke
 // Configure require.js shortcut aliases
 require.config({
+  shim : {
+    "bootstrap" : { "deps" :['jquery'] }
+  },
   paths: {
     jquery: 'https://metrics.torproject.org/js/jquery-3.2.1.min',
     underscore: 'libs/underscore/underscore-min',



More information about the tor-commits mailing list