diff --git a/server/plugins.js b/server/plugins.js index d008456..1365037 100644 --- a/server/plugins.js +++ b/server/plugins.js @@ -80,8 +80,8 @@ if (process.platform === 'win32') { const pluginConfigs = []; readJSFiles(pluginsDir).forEach(file => { - const dir = fs.statSync(filePath).isDirectory(); var filePath = path.join(pluginsDir, file); + const dir = fs.statSync(filePath).isDirectory(); if(dir) filePath = path.join(pluginsDir, file, file); const config = parsePluginConfig(filePath);