WebContextMenus: Fix input bar menu

This commit is contained in:
Nuckyz 2024-12-03 21:51:41 -03:00
parent df454ca952
commit 8711dd9a4b
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -164,8 +164,8 @@ export default definePlugin({
find: 'getElementById("slate-toolbar"', find: 'getElementById("slate-toolbar"',
predicate: () => settings.store.addBack, predicate: () => settings.store.addBack,
replacement: { replacement: {
match: /(?<=handleContextMenu\(\i\)\{.{0,200}isPlatformEmbedded)\?/, match: /(?<=handleContextMenu\(\i\)\{.{0,200}isPlatformEmbedded)\)/,
replace: "||true?" replace: "||true)"
} }
}, },
{ {