mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 09:55:39 +01:00
Merge pull request #9 from chris062689/master
Reverting change to how we cache triggers due to foreach loop.
This commit is contained in:
commit
dc29c03563
@ -106,7 +106,7 @@ require("fs").readdirSync('./triggers/').forEach(function(file) {
|
||||
// Load the trigger if it's a script.
|
||||
if (path.extname(file) == '.js') {
|
||||
logger.info(`Loaded trigger: ${file}`);
|
||||
cachedTriggers[file] = require(`./triggers/${file}`);
|
||||
cachedTriggers.push(require(`./triggers/${file}`));
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user