This commit is contained in:
Mirco Wittrien 2019-11-15 12:06:12 +01:00
parent 40688346c5
commit 1e7bf7bc82
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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");

View File

@ -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;
}