Browse Source

Compute 'extra.d' relative URL

pull/325/head
Simon Eisenmann 9 years ago
parent
commit
ae90855b9f
  1. 12
      static/js/main.js

12
static/js/main.js

@ -121,6 +121,18 @@ require.config({ @@ -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.

Loading…
Cancel
Save