aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-31 01:11:15 -0300
committerGitHub <noreply@github.com>2023-03-31 04:11:15 +0000
commitdae7cb67efbc2b8a7483d87e7200711edc224e3b (patch)
tree5a1888d8e4c29a75e8206ae7a005830f13966a95 /src
parent081b01b667e9b114e90281cc215184e9b03d5482 (diff)
downloadVencord-dae7cb67efbc2b8a7483d87e7200711edc224e3b.tar.gz
Vencord-dae7cb67efbc2b8a7483d87e7200711edc224e3b.tar.bz2
Vencord-dae7cb67efbc2b8a7483d87e7200711edc224e3b.zip
Fix IgnoreActivities broken patch (#743)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ignoreActivities.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ignoreActivities.tsx b/src/plugins/ignoreActivities.tsx
index 07b458f..ec64a99 100644
--- a/src/plugins/ignoreActivities.tsx
+++ b/src/plugins/ignoreActivities.tsx
@@ -147,8 +147,8 @@ export default definePlugin({
{
find: ".Messages.SETTINGS_GAMES_TOGGLE_OVERLAY",
replacement: {
- match: /!(\i)\|\|(null==\i\)return null;var \i=(\i)\.overlay.+?children:)(\[.{0,70}overlayStatusText.+?\])(?=}\)}\(\))/,
- replace: (_, platformCheck, restWithoutPlatformCheck, props, children) => ""
+ match: /!(\i)(\)return null;var \i=(\i)\.overlay.+?children:)(\[.{0,70}overlayStatusText.+?\])(?=}\)}\(\))/,
+ replace: (_, platformCheck, restWithoutPlatformCheck, props, children) => "false"
+ `${restWithoutPlatformCheck}`
+ `(${platformCheck}?${children}:[])`
+ `.concat(Vencord.Plugins.plugins.IgnoreActivities.renderToggleGameActivityButton(${props}))`