small fix
This commit is contained in:
parent
86fe1b5e11
commit
f6c6e03564
File diff suppressed because one or more lines are too long
11
src/index.js
11
src/index.js
|
@ -49,7 +49,16 @@ window.BdApi = BdApi;
|
|||
// ClassNormalizer
|
||||
|
||||
import Core from "./core";
|
||||
export default Core;
|
||||
export default class CoreWrapper {
|
||||
constructor(bdConfig) {
|
||||
this.mainCore = new Core(bdConfig);
|
||||
}
|
||||
|
||||
init() {
|
||||
// deprecateGlobal("mainCore", this.mainCore);
|
||||
this.mainCore.init();
|
||||
}
|
||||
}
|
||||
|
||||
// function patchModuleLoad() {
|
||||
// const namespace = "betterdiscord";
|
||||
|
|
|
@ -193,7 +193,7 @@ export default class Utils {
|
|||
}, timeout);
|
||||
}
|
||||
|
||||
alert(title, content) {
|
||||
static alert(title, content) {
|
||||
const modal = $(`<div class="bd-modal-wrapper theme-dark">
|
||||
<div class="bd-backdrop backdrop-1wrmKB"></div>
|
||||
<div class="bd-modal modal-1UGdnR">
|
||||
|
@ -208,7 +208,7 @@ export default class Utils {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer footer-2yfCgX">
|
||||
<div class="footer footer-2yfCgX footer-3rDWdC footer-2gL1pp">
|
||||
<button type="button">Okay</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -225,7 +225,7 @@ export default class Utils {
|
|||
modal.appendTo("#app-mount");
|
||||
}
|
||||
|
||||
showContentErrors({plugins: pluginErrors = [], themes: themeErrors = []}) {
|
||||
static showContentErrors({plugins: pluginErrors = [], themes: themeErrors = []}) {
|
||||
if (!pluginErrors || !themeErrors) return;
|
||||
if (!pluginErrors.length && !themeErrors.length) return;
|
||||
const modal = $(`<div class="bd-modal-wrapper theme-dark">
|
||||
|
|
|
@ -57,8 +57,11 @@ export default new class V2 {
|
|||
leaveBD2() {this.GuildActions.leaveGuild("280806472928198656");}
|
||||
|
||||
get react() {return this.internal.react;}
|
||||
get React() {return this.internal.react;}
|
||||
get reactDom() {return this.internal.reactDom;}
|
||||
get ReactDom() {return this.internal.reactDom;}
|
||||
get reactComponent() {return this.internal.react.Component;}
|
||||
get ReactComponent() {return this.internal.react.Component;}
|
||||
|
||||
get anchorClasses() {return this.WebpackModules.findByUniqueProperties(["anchorUnderlineOnHover"]) || {anchor: "anchor-3Z-8Bb", anchorUnderlineOnHover: "anchorUnderlineOnHover-2ESHQB"};}
|
||||
get slateEditorClasses() {return this.WebpackModules.findByUniqueProperties(["slateTextArea"]);}
|
||||
|
|
Loading…
Reference in New Issue