WebContextMenus: Fix slate menu

This commit is contained in:
V 2023-05-11 02:31:07 +02:00
parent d1ad6c47a7
commit 4d0a064425
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

View File

@ -157,9 +157,9 @@ export default definePlugin({
replace: "$1=[],$2=[]",
},
{
// if (!IS_DESKTOP) return
match: /(?<=showApplicationCommandSuggestions;)if\(!\i\.\i\)/,
replace: "if(false)"
// if (!IS_DESKTOP) return null;
match: /if\(!\i\.\i\)return null;/,
replace: ""
},
{
// do not add menu items for entries removed in patch 1. Using a lookbehind for group 1 is slow,