WebContextMenus: fix patch

This commit is contained in:
sadan 2026-02-04 22:19:14 -05:00
parent c8d880f578
commit fbe587fe55
No known key found for this signature in database

View file

@ -24,7 +24,7 @@ import { saveFile } from "@utils/web";
import { filters, mapMangledModuleLazy } from "@webpack";
import { ComponentDispatch } from "@webpack/common";
const ctxMenuCallbacks = mapMangledModuleLazy('.tagName)==="TEXTAREA"||', {
const ctxMenuCallbacks = mapMangledModuleLazy('closest("[contenteditable=true]")', {
contextMenuCallbackWeb: filters.byCode('"[contenteditable=true]"'),
contextMenuCallbackNative: filters.byCode('.getPropertyValue("-webkit-user-select")')
});