Update ImageUtilities.plugin.js
This commit is contained in:
parent
148b892cfd
commit
9fdd94bbdc
|
@ -5,7 +5,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "ImageUtilities",
|
||||
"author": "DevilBro",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.7",
|
||||
"description": "Adds a handful of options for images/emotes/avatars (direct download, reverse image search, zoom, copy image link, copy image to clipboard, gallery mode)"
|
||||
}
|
||||
};
|
||||
|
@ -317,7 +317,7 @@ module.exports = (_ => {
|
|||
if (e.instance.props.guild && settings.addGuildIconEntry) {
|
||||
let banner = BDFDB.DOMUtils.getParent(BDFDB.dotCN.guildheader, e.instance.props.target) || BDFDB.DOMUtils.getParent(BDFDB.dotCN.guildchannels, e.instance.props.target) && !e.instance.props.target.className && e.instance.props.target.parentElement.firstElementChild == e.instance.props.target;
|
||||
if (banner) {
|
||||
if (e.instance.props.guild.banner) this.injectItem(e, e.instance.props.guild.banner);
|
||||
if (e.instance.props.guild.banner) this.injectItem(e, BDFDB.LibraryModules.IconUtils.getGuildBannerURL(e.instance.props.guild));
|
||||
}
|
||||
else if (e.type != "GuildChannelListContextMenu") this.injectItem(e, e.instance.props.guild.getIconURL("png"), BDFDB.LibraryModules.IconUtils.hasAnimatedGuildIcon(e.instance.props.guild) && e.instance.props.guild.getIconURL("gif"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue