etherpad-lite/src/static/js/require-kernel-config.js
2015-05-12 23:24:40 +02:00

12 lines
404 B
JavaScript

(function () {
var pathComponents = location.pathname.split('/');
// Strip 'p' and the padname from the pathname and set as baseURL
var baseURL = pathComponents.slice(0,pathComponents.length-2).join('/') + '/';
require.setRootURI(baseURL + "javascripts/src");
require.setLibraryURI(baseURL + "javascripts/lib");
require.setGlobalKeyPath("require");
window.requireKernel = require;
}());