Secrets for devs
This commit is contained in:
parent
174c1ee791
commit
a3829089f9
|
@ -96,10 +96,6 @@ class BetterDiscord {
|
||||||
Events.emit('ready');
|
Events.emit('ready');
|
||||||
Events.emit('discord-ready');
|
Events.emit('discord-ready');
|
||||||
|
|
||||||
window.__superSecretBdMenu = function() {
|
|
||||||
Events.emit('enabledSuperSecretBdMenu');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Settings.get('core', 'advanced', 'ignore-content-manager-errors'))
|
if (!Settings.get('core', 'advanced', 'ignore-content-manager-errors'))
|
||||||
Modals.showContentManagerErrors();
|
Modals.showContentManagerErrors();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Imports
|
// Imports
|
||||||
import { Events, Settings, Globals } from 'modules';
|
import { Events, Settings, Globals, Reflection } from 'modules';
|
||||||
import { BdMenuItems } from 'ui';
|
import { BdMenuItems } from 'ui';
|
||||||
import { shell } from 'electron';
|
import { shell } from 'electron';
|
||||||
import { SidebarView, Sidebar, SidebarItem, ContentColumn } from './sidebar';
|
import { SidebarView, Sidebar, SidebarItem, ContentColumn } from './sidebar';
|
||||||
|
@ -136,7 +136,14 @@
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
Events.on('bd-open-menu', this.openMenuHandler = item => item && this.itemOnClick(this.items.find(i => i === item || i.id === item || i.contentid === item || i.set === item).id));
|
Events.on('bd-open-menu', this.openMenuHandler = item => item && this.itemOnClick(this.items.find(i => i === item || i.id === item || i.contentid === item || i.set === item).id));
|
||||||
Events.on('enabledSuperSecretBdMenu', () => this.superSecretMenu = true);
|
try {
|
||||||
|
const currentUser = Reflection.module.byName('UserStore').getCurrentUser();
|
||||||
|
if (['81388395867156480',
|
||||||
|
'98003542823944192',
|
||||||
|
'249746236008169473',
|
||||||
|
'284056145272766465',
|
||||||
|
'478559353516064769'].includes(currentUser.id)) this.superSecretMenu = true;
|
||||||
|
} catch (err) {}
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
if (this.openMenuHandler) Events.off('bd-open-menu', this.openMenuHandler);
|
if (this.openMenuHandler) Events.off('bd-open-menu', this.openMenuHandler);
|
||||||
|
|
Loading…
Reference in New Issue