You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
oh brother
This commit is contained in:
@@ -319,15 +319,15 @@ function startPluginsWithDelay(plugins, delay) {
|
|||||||
plugins.forEach((pluginPath, index) => {
|
plugins.forEach((pluginPath, index) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const pluginName = path.basename(pluginPath, '.js'); // Extract plugin name from path
|
const pluginName = path.basename(pluginPath, '.js'); // Extract plugin name from path
|
||||||
logInfo(`-----------------------------------------------------------------`);
|
consoleCmd.logInfo(`-----------------------------------------------------------------`);
|
||||||
logInfo(`Plugin ${pluginName} loaded successfully!`);
|
consoleCmd.logInfo(`Plugin ${pluginName} loaded successfully!`);
|
||||||
require(pluginPath);
|
require(pluginPath);
|
||||||
}, delay * index);
|
}, delay * index);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add final log line after all plugins are loaded
|
// Add final log line after all plugins are loaded
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
logInfo(`-----------------------------------------------------------------`);
|
consoleCmd.logInfo(`-----------------------------------------------------------------`);
|
||||||
}, delay * plugins.length);
|
}, delay * plugins.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user