Update OwnerTag.plugin.js
This commit is contained in:
parent
dbe4bd40d8
commit
df1e176d6a
|
@ -3,7 +3,7 @@
|
||||||
class OwnerTag {
|
class OwnerTag {
|
||||||
getName () {return "OwnerTag";}
|
getName () {return "OwnerTag";}
|
||||||
|
|
||||||
getVersion () {return "1.0.2";}
|
getVersion () {return "1.0.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ class OwnerTag {
|
||||||
|
|
||||||
processPopout (instance, wrapper) {
|
processPopout (instance, wrapper) {
|
||||||
let fiber = instance._reactInternalFiber;
|
let fiber = instance._reactInternalFiber;
|
||||||
if (fiber.return && fiber.return.memoizedProps && fiber.return.memoizedProps.message) {
|
if (fiber.return && fiber.return.memoizedProps && fiber.return.memoizedProps.message && BDFDB.getData("addInChatWindow", this, "settings")) {
|
||||||
let username = wrapper.querySelector(BDFDB.dotCN.messageusername);
|
let username = wrapper.querySelector(BDFDB.dotCN.messageusername);
|
||||||
if (username) {
|
if (username) {
|
||||||
let message = BDFDB.getParentEle(BDFDB.dotCN.messagegroup, wrapper);
|
let message = BDFDB.getParentEle(BDFDB.dotCN.messagegroup, wrapper);
|
||||||
|
@ -171,4 +171,4 @@ class OwnerTag {
|
||||||
tag.style.setProperty(invert ? "color" : "background-color", tagcolor, "important");
|
tag.style.setProperty(invert ? "color" : "background-color", tagcolor, "important");
|
||||||
wrapper.appendChild(tag);
|
wrapper.appendChild(tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue