Update ImageUtilities.plugin.js
This commit is contained in:
parent
62eb44738c
commit
4d28c6be21
|
@ -707,7 +707,6 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
onMessageContextMenu (e) {
|
||||
console.log(e);
|
||||
if (!e.instance.props.message || !e.instance.props.channel || !e.instance.props.target) return;
|
||||
const target = e.instance.props.target.tagName == "A" && BDFDB.DOMUtils.containsClass(e.instance.props.target, BDFDB.disCN.imageoriginallink) && e.instance.props.target.parentElement.querySelector("img, video") || e.instance.props.target;
|
||||
if (target.tagName == "A" && e.instance.props.message.embeds && e.instance.props.message.embeds[0] && (e.instance.props.message.embeds[0].type == "image" || e.instance.props.message.embeds[0].type == "video" || e.instance.props.message.embeds[0].type == "gifv")) this.injectItem(e, [target.href], null, true);
|
||||
|
|
Loading…
Reference in New Issue