diff --git a/src/plugins/imageZoom/index.tsx b/src/plugins/imageZoom/index.tsx index 4d63d748f..8c50ae9f4 100644 --- a/src/plugins/imageZoom/index.tsx +++ b/src/plugins/imageZoom/index.tsx @@ -85,7 +85,7 @@ const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => // Discord re-uses the image context menu for links to for the copy and open buttons if ("href" in props) return; // emojis in user statuses - if (props?.target?.classList != null && [...props.target.classList].some(x => x === "emoji")) return; + if (props.target?.classList?.contains("emoji")) return; const { square, nearestNeighbour } = settings.use(["square", "nearestNeighbour"]);