From 5d430e62966cdedd6c7b41449eb37220164e29e1 Mon Sep 17 00:00:00 2001 From: Bram van der Veen <96aa48@gmail.com> Date: Sat, 18 Jun 2016 15:50:49 +0200 Subject: [PATCH] Fixed some variable issues with the plugin loader function --- web.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.js b/web.js index 8731dd9..ce27cee 100644 --- a/web.js +++ b/web.js @@ -83,9 +83,9 @@ function plugins() { var pluginsDirectory = fs.readdirSync(__dirname + '/plugins'); for (plugin of pluginsDirectory) { - let app = __dirname + '/plugins/' + plugin + '/app.js'; + var app = __dirname + '/plugins/' + plugin + '/app.js'; if (fs.existsSync(app)) { - let app = require(app)(config().webPort + (1 + pluginsDirectory.indexOf(plugin)), config().webHost); + var app = require(app)(config().webPort + (1 + pluginsDirectory.indexOf(plugin)), config().webHost); } } }