add ignoreExternal for faster testing other things

This commit is contained in:
Jiiks 2018-03-08 08:25:51 +02:00
parent 1ddb93bd5d
commit ff71042bb0
1 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,7 @@ import BdCss from './styles/index.scss';
import { Events, CssEditor, Globals, ExtModuleManager, PluginManager, ThemeManager, ModuleManager, WebpackModules, Settings, Database } from 'modules';
import { ClientLogger as Logger, ClientIPC } from 'common';
import { EmoteModule } from 'builtin';
const ignoreExternal = true;
class BetterDiscord {
@ -39,9 +40,11 @@ class BetterDiscord {
await Database.init();
await Settings.loadSettings();
await ModuleManager.initModules();
await ExtModuleManager.loadAllModules(true);
await PluginManager.loadAllPlugins(true);
await ThemeManager.loadAllThemes(true);
if (!ignoreExternal) {
await ExtModuleManager.loadAllModules(true);
await PluginManager.loadAllPlugins(true);
await ThemeManager.loadAllThemes(true);
}
Modals.showContentManagerErrors();
Events.emit('ready');
Events.emit('discord-ready');