fixing mappedPath in windows

This commit is contained in:
Julian Lam
2014-03-03 16:31:50 -05:00
parent 37aeda14c4
commit 8846f7fb9b

View File

@@ -175,7 +175,7 @@ var fs = require('fs'),
(function(staticDir) {
fs.exists(staticDir, function(exists) {
if (exists) {
Plugins.staticDirs[path.join(pluginData.id, mappedPath)] = staticDir;
Plugins.staticDirs[pluginData.id + '/' + mappedPath] = staticDir;
} else {
winston.warn('[plugins/' + pluginData.id + '] Mapped path \'' + mappedPath + ' => ' + staticDir + '\' not found.');
}