Merge branch 'dev' into feat/api/SettingsLists

This commit is contained in:
Elvyra 2025-01-25 14:41:54 +01:00 committed by GitHub
commit 5508d89672
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 // Discord re-uses the image context menu for links to for the copy and open buttons
if ("href" in props) return; if ("href" in props) return;
// emojis in user statuses // 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"]); const { square, nearestNeighbour } = settings.use(["square", "nearestNeighbour"]);