Emote Clone plugin

This commit is contained in:
Vendicated 2022-11-13 03:46:46 +01:00
parent 81edc14070
commit 9110d1f9bd
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
3 changed files with 233 additions and 1 deletions

View file

@ -56,7 +56,7 @@ export default definePlugin({
}],
makeMenu(src: string, target: HTMLElement) {
if (target && target.attributes["data-role"]?.value !== "img")
if (target && !(target instanceof HTMLImageElement) && target.attributes["data-role"]?.value !== "img")
return null;
return (