Fix plugin loader

make it work on client side and with relative paths
This commit is contained in:
Marcel Klehr 2012-06-29 12:40:16 +02:00
parent f891534258
commit 227477967f
1 changed files with 2 additions and 2 deletions

View File

@ -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(":");