mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
lol
This commit is contained in:
+1
-1
@@ -80,8 +80,8 @@ if (process.platform === 'win32') {
|
|||||||
|
|
||||||
const pluginConfigs = [];
|
const pluginConfigs = [];
|
||||||
readJSFiles(pluginsDir).forEach(file => {
|
readJSFiles(pluginsDir).forEach(file => {
|
||||||
const dir = fs.statSync(filePath).isDirectory();
|
|
||||||
var filePath = path.join(pluginsDir, file);
|
var filePath = path.join(pluginsDir, file);
|
||||||
|
const dir = fs.statSync(filePath).isDirectory();
|
||||||
if(dir) filePath = path.join(pluginsDir, file, file);
|
if(dir) filePath = path.join(pluginsDir, file, file);
|
||||||
|
|
||||||
const config = parsePluginConfig(filePath);
|
const config = parsePluginConfig(filePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user