Update DisplayServersAsChannels.plugin.js
This commit is contained in:
parent
99766a1a6b
commit
5dbdc5f605
|
@ -2,7 +2,7 @@
|
|||
* @name DisplayServersAsChannels
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.7.8
|
||||
* @version 1.7.9
|
||||
* @description Displays Servers in a similar way as Channels
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -171,7 +171,7 @@ module.exports = (_ => {
|
|||
let scroller = BDFDB.ReactUtils.findChild(returnValue, {props: [["className", BDFDB.disCN.guildsscroller]]});
|
||||
if (scroller) {
|
||||
scroller.props.fade = true;
|
||||
let padding = parseInt(BDFDB.LibraryModules.PlatformUtils.isWindows() ? 4 : BDFDB.LibraryModules.PlatformUtils.isDarwin() ? 0 : 12) + 10;
|
||||
let padding = parseInt(BDFDB.LibraryModules.PlatformUtils.isWindows() ? 4 : BDFDB.LibraryModules.PlatformUtils.isLinux() ? 0 : 12) + 10;
|
||||
let isVisible = (currentItem, t, items) => {
|
||||
if (!scroller.ref || !scroller.ref.current) return false;
|
||||
const index = items.findIndex(item => typeof item == "string" || !item ? currentItem === item : item.includes(currentItem));
|
||||
|
|
Loading…
Reference in New Issue