diff --git a/static/js/main.js b/static/js/main.js index b43dd87f..e83670ff 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -121,6 +121,18 @@ require.config({ } }); +(function() { + // Dynamic extraD, go up all segments from our current app. + var extraD = require.toUrl('extra.d').split('/'); + for (var i = 0; i < extraD.length - 1; i++) { + extraD[i] = '..' + } + extraD = extraD.join('/'); + require.config({ + 'extra.d': extraD + }); +}()); + (function() { var debugDefault = window.location.href.match(/(\?|&)debug($|&|=)/); // Overwrite console to not log stuff per default.