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
|
||||
, parts = path.split(":");
|
||||
|
||||
// on windows
|
||||
if(process.platform == 'win32') {
|
||||
// on windows: C:\foo\bar:xyz
|
||||
if(parts[0].length == 1) {
|
||||
if(parts.length == 3)
|
||||
functionName = parts.pop();
|
||||
path = parts.join(":");
|
||||
|
|
Loading…
Reference in a new issue