lib
This commit is contained in:
parent
e5f83fc8bf
commit
6543309106
|
@ -962,7 +962,7 @@ var BDFDB = {
|
||||||
InviteCard: "guildsettingsinvitecard",
|
InviteCard: "guildsettingsinvitecard",
|
||||||
PopoutContainer: "popout",
|
PopoutContainer: "popout",
|
||||||
PrivateChannelCall: "callcurrentcontainer",
|
PrivateChannelCall: "callcurrentcontainer",
|
||||||
PrivateChannelsList: "dmchannels",
|
PrivateChannelsList: "dmchannelsscroller",
|
||||||
MemberCard: "guildsettingsmembercard",
|
MemberCard: "guildsettingsmembercard",
|
||||||
NameTag: "nametag",
|
NameTag: "nametag",
|
||||||
Note: "usernote",
|
Note: "usernote",
|
||||||
|
@ -1197,10 +1197,11 @@ var BDFDB = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!instancefound) {
|
if (!instancefound) {
|
||||||
var found = false, instanceobserver = new MutationObserver(cs => {cs.forEach(c => {c.addedNodes.forEach(n => {
|
let found = false, disclass = BDFDB.disCN[classname], dotclass = BDFDB.dotCN[classname];
|
||||||
|
let instanceobserver = new MutationObserver(cs => {cs.forEach(c => {c.addedNodes.forEach(n => {
|
||||||
if (found || !n || !n.tagName) return;
|
if (found || !n || !n.tagName) return;
|
||||||
var ele = null;
|
var ele = null;
|
||||||
if ((ele = BDFDB.DOMUtils.containsClass(n, BDFDB.disCN[classname]) ? n : n.querySelector(BDFDB.dotCN[classname])) != null) {
|
if ((ele = BDFDB.DOMUtils.containsClass(n, disclass) ? n : n.querySelector(dotclass)) != null) {
|
||||||
var ins = BDFDB.ReactUtils.getInstance(ele);
|
var ins = BDFDB.ReactUtils.getInstance(ele);
|
||||||
if (isCorrectInstance(ins, type)) {
|
if (isCorrectInstance(ins, type)) {
|
||||||
found = true;
|
found = true;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue