[Updater > v2] Fix undefined error

This commit is contained in:
Ducko 2022-03-24 13:14:32 +00:00
parent 7530f5c23b
commit ed445f830f
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Updater extends EventEmitter {
const base = join(this._getHostPath(), 'modules');
for (const mod in versions.current_modules) {
const path = join(modulesPath, `${mod}-${versions.current_modules[mod]}`);
const path = join(base, `${mod}-${versions.current_modules[mod]}`);
if (!Module.globalPaths.includes(path)) Module.globalPaths.push(path);
}