aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-11 02:31:07 +0200
committerV <vendicated@riseup.net>2023-05-11 02:35:05 +0200
commit4d0a0644254294371831be0fe342aa824cc717ff (patch)
tree464b7850aea946dc3bf1a9646f20b82253ca297c /src/plugins
parentd1ad6c47a7638117970431b64db0b8513073d5b0 (diff)
downloadVencord-4d0a0644254294371831be0fe342aa824cc717ff.tar.gz
Vencord-4d0a0644254294371831be0fe342aa824cc717ff.tar.bz2
Vencord-4d0a0644254294371831be0fe342aa824cc717ff.zip
WebContextMenus: Fix slate menu
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/webContextMenus.web.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/webContextMenus.web.ts b/src/plugins/webContextMenus.web.ts
index bab82b4..39933fb 100644
--- a/src/plugins/webContextMenus.web.ts
+++ b/src/plugins/webContextMenus.web.ts
@@ -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,