mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 08:16:16 -05:00
Fix watchConfig
This commit is contained in:
parent
0126585385
commit
4d50796d25
2
app.js
2
app.js
|
|
@ -108,7 +108,7 @@ if (Config.watchconfig) {
|
|||
if (curr.mtime <= prev.mtime) return;
|
||||
try {
|
||||
delete require.cache[require.resolve('./config/config.js')];
|
||||
config = require('./config/config.js');
|
||||
Config = require('./config/config.js');
|
||||
console.log('Reloaded config/config.js');
|
||||
} catch (e) {}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user