mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Fix plugin loader
make it work on client side and with relative paths
This commit is contained in:
parent
f891534258
commit
227477967f
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ exports.loadFn = function (path, hookName) {
|
||||||
var functionName
|
var functionName
|
||||||
, parts = path.split(":");
|
, parts = path.split(":");
|
||||||
|
|
||||||
// on windows
|
// on windows: C:\foo\bar:xyz
|
||||||
if(process.platform == 'win32') {
|
if(parts[0].length == 1) {
|
||||||
if(parts.length == 3)
|
if(parts.length == 3)
|
||||||
functionName = parts.pop();
|
functionName = parts.pop();
|
||||||
path = parts.join(":");
|
path = parts.join(":");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue