From e25cdeb04f9da7aa8a661ce9b716c1e1b2fb202f Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sat, 9 Aug 2014 01:48:02 -0500 Subject: [PATCH] Fix logic errors --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 5dfad2b..8d7c3fe 100644 --- a/app.js +++ b/app.js @@ -30,7 +30,7 @@ function installPlugins(callback) { if (err) throw err; var loadedPlugins = []; for (var i = 0; i < pluginsToInstall.length; i++) { - loadedPlugins.push(path.resolve(__dirname, require(pluginsToInstall[i]))); + loadedPlugins.push(require(pluginsToInstall[i])); } callback(loadedPlugins); }); @@ -40,7 +40,7 @@ function installPlugins(callback) { function loadPlugins(callback) { var loadedPlugins = []; for (var i = 0; i < pluginsToLoad.length; i++) { - pluginsToLoad.push(require(pluginsToLoad[i])); + loadedPlugins.push(require(path.resolve(__dirname, pluginsToLoad[i]))); } callback(loadedPlugins); }