This commit is contained in:
Mirco Wittrien 2022-02-24 13:25:28 +01:00
parent 9b84a45e7d
commit 0f18b70782
2 changed files with 4 additions and 7 deletions

View File

@ -2362,9 +2362,10 @@ module.exports = (_ => {
if (appMount) {
Internal.patchObserverData.observer = new MutationObserver(cs => cs.forEach(c => c.addedNodes.forEach(n => {
if (!n || !n.tagName) return;
for (let type in Internal.patchObserverData.data) if (!Internal.patchObserverData.data[type].found) {
let ele = null;
if ((ele = BDFDB.DOMUtils.containsClass(n, ...Internal.patchObserverData.data[type].classes) ? n : n.querySelector(Internal.patchObserverData.data[type].selector)) != null) {
for (let type in Internal.patchObserverData.data) {
if (!Internal.patchObserverData.data[type] || Internal.patchObserverData.data[type].found) return;
for (let ele of [BDFDB.DOMUtils.containsClass(n, ...Internal.patchObserverData.data[type].classes) && n].concat([...n.querySelectorAll(Internal.patchObserverData.data[type].selector)]).filter(n => n)) {
if (!Internal.patchObserverData.data[type] || Internal.patchObserverData.data[type].found) return;
Internal.patchObserverData.data[type].found = Internal.checkElementForComponent(Internal.patchObserverData.data[type].plugins, ele, Internal.patchObserverData.data[type].config);
if (Internal.patchObserverData.data[type].found) {
delete Internal.patchObserverData.data[type];

View File

@ -211,10 +211,6 @@
"PopoutContainer": "Popout",
"QuickSwitchResult": "Result"
},
"ForceObserve": [
"DirectMessage",
"GuildIcon"
],
"Finder": {
"Account": {"class": "accountinfo"},
"App": {"class": "app"},