mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
12 lines
404 B
JavaScript
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;
|
|
}());
|