stuff
This commit is contained in:
parent
40688346c5
commit
1e7bf7bc82
|
@ -257,6 +257,7 @@ var BDFDB = {
|
|||
if (!BDFDB.ObjectUtils.is(plugin) || !children || (!BDFDB.ReactUtils.isValidElement(children) && !BDFDB.ArrayUtils.is(children)) || (BDFDB.ArrayUtils.is(children) && !children.length)) return;
|
||||
var settingspanel = BDFDB.DOMUtils.create(`<div class="${plugin.name}-settings ${BDFDB.disCN.settingspanel}"></div>`);
|
||||
BDFDB.ReactUtils.render(BDFDB.ReactUtils.createElement(LibraryComponents.SettingsPanel, {
|
||||
key: `${plugin.name}-settingspanel`,
|
||||
title: plugin.name,
|
||||
children
|
||||
}), settingspanel);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -988,7 +988,7 @@ class ServerFolders {
|
|||
});
|
||||
guildcopy.addEventListener("click", e => {
|
||||
BDFDB.ListenerUtils.stopEvent(e);
|
||||
if (BDFDB.pressedKeys.includes(46)) this.removeGuildFromFolder(folderid, guildid);
|
||||
if (BDFDB.InternalData.pressedKeys.includes(46)) this.removeGuildFromFolder(folderid, guildid);
|
||||
else {
|
||||
BDFDB.LibraryModules.GuildUtils.transitionToGuildSync(guild.id);
|
||||
let settings = BDFDB.DataUtils.get(this, "settings");
|
||||
|
|
|
@ -167,7 +167,7 @@ class SpellCheck {
|
|||
}
|
||||
if (true || !word && textarea.value) for (let error of textarea.parentElement.querySelectorAll(".spelling-error")) {
|
||||
let rects = BDFDB.DOMUtils.getRects(error);
|
||||
if (BDFDB.mousePosition.pageX > rects.x && BDFDB.mousePosition.pageX < (rects.x + rects.width) && BDFDB.mousePosition.pageY > rects.y && BDFDB.mousePosition.pageY < (rects.y + rects.height)) {
|
||||
if (BDFDB.InternalData.mousePosition.pageX > rects.x && BDFDB.InternalData.mousePosition.pageX < (rects.x + rects.width) && BDFDB.InternalData.mousePosition.pageY > rects.y && BDFDB.InternalData.mousePosition.pageY < (rects.y + rects.height)) {
|
||||
word = error.innerText;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue