Update OwnerTag.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-09 15:17:35 +01:00 committed by GitHub
parent dbe4bd40d8
commit df1e176d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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