From 6aa34898a038cc825eed36f35bcdbe38d0d57ebe Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 8 Dec 2024 12:19:59 +0100 Subject: [PATCH] Update DisplayServersAsChannels.plugin.js --- .../DisplayServersAsChannels.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js index d0bf371572..22daa1213e 100644 --- a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js +++ b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js @@ -2,7 +2,7 @@ * @name DisplayServersAsChannels * @author DevilBro * @authorId 278543574059057154 - * @version 1.8.2 + * @version 1.8.3 * @description Displays Servers in a similar way as Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -355,7 +355,7 @@ module.exports = (_ => { removeMask (parent) { let [children, index] = BDFDB.ReactUtils.findParent(parent, {name: "BlobMask"}); - let parentIsMask = index == -1 && parent.type.prototype && parent.type.prototype && typeof parent.type.prototype.getLowerBadgeStyles == "function"; + let parentIsMask = index == -1 && typeof parent.type == "function" && parent.type.toString().indexOf("BlobMask") > -1; if (parentIsMask) [children, index] = [[parent], 0]; if (index > -1) { let badges = [];