mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't try to load directories as files
This commit is contained in:
@ -46,6 +46,7 @@ async function loadPlugins(app, pluginsPath) {
|
|||||||
|
|
||||||
if (fs.statSync(pluginFilePath).isDirectory()) {
|
if (fs.statSync(pluginFilePath).isDirectory()) {
|
||||||
await loadFromDirectory(app, pluginFilePath);
|
await loadFromDirectory(app, pluginFilePath);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not a JavaScript file.
|
// Not a JavaScript file.
|
||||||
|
Reference in New Issue
Block a user