Skip to content

Commit

Permalink
Updated Factory.js to ignore non .js file types (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-1ne authored Jan 6, 2024
1 parent 1e929eb commit 1d12fc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions squad-server/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ export default class SquadServerFactory {

for (const pluginConfig of config.plugins) {
if (!pluginConfig.enabled) continue;

//ignore non JS files
if (!pluginConfig.plugin.endsWith('.js')){
continue;
}

if (!plugins[pluginConfig.plugin])
throw new Error(`Plugin ${pluginConfig.plugin} does not exist.`);
Expand Down

2 comments on commit 1d12fc0

@Zer0-1ne
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer working as of 4.0.0, working on updating it ASAP

@Zer0-1ne
Copy link
Contributor Author

@Zer0-1ne Zer0-1ne commented on 1d12fc0 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in PR #340

Please sign in to comment.