some changes

This commit is contained in:
2026-05-20 17:31:03 +02:00
parent e30a08c0a1
commit 1b99b2e5d8
10 changed files with 19 additions and 30 deletions
+4 -1
View File
@@ -77,7 +77,10 @@ if (process.platform === 'win32') {
const pluginConfigs = [];
readJSFiles(pluginsDir).forEach(file => {
const filePath = path.join(pluginsDir, file);
var filePath = undefined;
if(fs.statSync(file).isFile()) filePath = path.join(pluginsDir, file);
else if(fs.statSync(file).isDirectory()) filePath = path.join(pluginsDir, file, file);
const config = parsePluginConfig(filePath);
if (Object.keys(config).length > 0) pluginConfigs.push(config);
});