Don't have to resolve it twice

This commit is contained in:
Jiiks 2018-03-20 07:46:34 -03:00
parent 9f24d0d1ce
commit c60411c901
1 changed files with 0 additions and 6 deletions

View File

@ -146,12 +146,6 @@ class BetterDiscord {
await FileUtils.ensureDirectory(paths.find(path => path.id === 'ext').path);
if (!tests) {
const files = await FileUtils.listDirectory(paths.find(path => path.id === 'base').path);
const latestCs = FileUtils.resolveLatest(files, file => file.endsWith('.js') && file.startsWith('client.'), file => file.replace('client.', '').replace('.js', ''), 'client.', '.js');
paths.find(path => path.id === 'cs').path = path.resolve(paths.find(path => path.id === 'base').path, latestCs).replace(/\\/g, '/');
}
this.csseditor = new CSSEditor(this, paths.find(path => path.id === 'csseditor').path);
this.windowUtils.events('did-get-response-details', () => this.ignite(this.windowUtils.window));