mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
ah fuck
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ readJSFiles(pluginsDir).forEach(file => {
|
|||||||
const dir = fs.statSync(filePath).isDirectory();
|
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);
|
var config = parsePluginConfig(filePath);
|
||||||
if(dir) config = {...config, prefix: file}
|
if(dir) config = {...config, prefix: file}
|
||||||
else config = {...config, prefix: ""}
|
else config = {...config, prefix: ""}
|
||||||
pluginConfigs.push(config);
|
pluginConfigs.push(config);
|
||||||
|
|||||||
Reference in New Issue
Block a user