Skip to content

Commit

Permalink
Fixed issue where the plugins wouldn't load due to poor placement (#340)
Browse files Browse the repository at this point in the history
* Fixed issue where the plugins wouldn't load due to poor placement

* linted Squad-Server/plugins/index.js
  • Loading branch information
Zer0-1ne committed Jan 6, 2024
1 parent bd20340 commit 5be2d21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion squad-server/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ class Plugins {

const pluginFilenames = [];
for await (const dirent of dir) {
if (!dirent.isFile()) continue;
// Check for non .js file type
if (!dirent.isFile() || !dirent.name.endsWith('.js')) {
continue;
}
if (
[
'index.js',
Expand Down

0 comments on commit 5be2d21

Please sign in to comment.