add developer mode

This commit is contained in:
Jiiks 2018-03-14 11:13:18 +02:00
parent 25044beaef
commit bf7919a877
1 changed files with 26 additions and 22 deletions

View File

@ -14,32 +14,36 @@ import { Patcher, Events, CssEditor, Globals, ExtModuleManager, PluginManager, T
import { ClientLogger as Logger, ClientIPC, Utils } from 'common';
import { EmoteModule } from 'builtin';
const ignoreExternal = false;
const DEV = true;
class BetterDiscord {
constructor() {
window._bd = {
DOM,
BdUI,
Modals,
Reflection,
Patcher,
Events,
CssEditor,
Globals,
ExtModuleManager,
PluginManager,
ThemeManager,
ModuleManager,
WebpackModules,
Settings,
Database,
ReactComponents,
DiscordApi,
Logger,
ClientIPC,
Utils,
EmoteModule
window.BDDEVMODE = function () {
if (!DEV) return;
window._bd = {
DOM,
BdUI,
Modals,
Reflection,
Patcher,
Events,
CssEditor,
Globals,
ExtModuleManager,
PluginManager,
ThemeManager,
ModuleManager,
WebpackModules,
Settings,
Database,
ReactComponents,
DiscordApi,
Logger,
ClientIPC,
Utils,
EmoteModule
}
}
DOM.injectStyle(BdCss, 'bdmain');