From ff71042bb0ae231c2dd119b45e642b8fb35e1e59 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 8 Mar 2018 08:25:51 +0200 Subject: [PATCH] add ignoreExternal for faster testing other things --- client/src/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/index.js b/client/src/index.js index f37523b5..3a292197 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -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');