stuff
This commit is contained in:
parent
9b84a45e7d
commit
0f18b70782
|
@ -2362,9 +2362,10 @@ module.exports = (_ => {
|
||||||
if (appMount) {
|
if (appMount) {
|
||||||
Internal.patchObserverData.observer = new MutationObserver(cs => cs.forEach(c => c.addedNodes.forEach(n => {
|
Internal.patchObserverData.observer = new MutationObserver(cs => cs.forEach(c => c.addedNodes.forEach(n => {
|
||||||
if (!n || !n.tagName) return;
|
if (!n || !n.tagName) return;
|
||||||
for (let type in Internal.patchObserverData.data) if (!Internal.patchObserverData.data[type].found) {
|
for (let type in Internal.patchObserverData.data) {
|
||||||
let ele = null;
|
if (!Internal.patchObserverData.data[type] || Internal.patchObserverData.data[type].found) return;
|
||||||
if ((ele = BDFDB.DOMUtils.containsClass(n, ...Internal.patchObserverData.data[type].classes) ? n : n.querySelector(Internal.patchObserverData.data[type].selector)) != null) {
|
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);
|
Internal.patchObserverData.data[type].found = Internal.checkElementForComponent(Internal.patchObserverData.data[type].plugins, ele, Internal.patchObserverData.data[type].config);
|
||||||
if (Internal.patchObserverData.data[type].found) {
|
if (Internal.patchObserverData.data[type].found) {
|
||||||
delete Internal.patchObserverData.data[type];
|
delete Internal.patchObserverData.data[type];
|
||||||
|
|
|
@ -211,10 +211,6 @@
|
||||||
"PopoutContainer": "Popout",
|
"PopoutContainer": "Popout",
|
||||||
"QuickSwitchResult": "Result"
|
"QuickSwitchResult": "Result"
|
||||||
},
|
},
|
||||||
"ForceObserve": [
|
|
||||||
"DirectMessage",
|
|
||||||
"GuildIcon"
|
|
||||||
],
|
|
||||||
"Finder": {
|
"Finder": {
|
||||||
"Account": {"class": "accountinfo"},
|
"Account": {"class": "accountinfo"},
|
||||||
"App": {"class": "app"},
|
"App": {"class": "app"},
|
||||||
|
|
Loading…
Reference in New Issue