mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
fix #677
This commit is contained in:
parent
83648481c3
commit
0e941b498e
4 changed files with 24 additions and 5 deletions
|
@ -280,8 +280,12 @@
|
|||
var clientVars = {};
|
||||
(function () {
|
||||
|
||||
var baseURL = '../';
|
||||
|
||||
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");
|
||||
|
|
|
@ -134,7 +134,12 @@
|
|||
var clientVars = {};
|
||||
|
||||
(function () {
|
||||
var baseURL = '../../';
|
||||
|
||||
var pathComponents = location.pathname.split('/');
|
||||
|
||||
// Strip 'p', the padname and 'timeslider' from the pathname and set as baseURL
|
||||
var baseURL = pathComponents.slice(0,pathComponents.length-3).join('/') + '/';
|
||||
|
||||
|
||||
require.setRootURI(baseURL + "javascripts/src");
|
||||
require.setLibraryURI(baseURL + "javascripts/lib");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue