36 lines
922 B
JavaScript
36 lines
922 B
JavaScript
/**
|
|
* BetterDiscord Client Core
|
|
* Copyright (c) 2015-present JsSucks - https://github.com/JsSucks
|
|
* All rights reserved.
|
|
* https://github.com/JsSucks - https://betterdiscord.net
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const { Global, Logger, Utils, PluginManager, BDIpc, WebpackModules, SocketProxy, CssEditor } = require('./modules');
|
|
|
|
class BetterDiscord {
|
|
|
|
constructor() {
|
|
window.bdUtils = Utils;
|
|
window.wpm = WebpackModules;
|
|
window.cssEditor = CssEditor;
|
|
}
|
|
|
|
}
|
|
|
|
if (window.BetterDiscord) {
|
|
Logger.log('main', 'Attempting to inject again?');
|
|
} else {
|
|
let bdInstance = new BetterDiscord();
|
|
window.BetterDiscord = {
|
|
'vendor': {
|
|
jQuery: require('jquery'),
|
|
$: require('jquery'),
|
|
moment: require('moment')
|
|
}
|
|
};
|
|
} |