From 38f3aac98d1098a70364366c056e0007f041d1cf Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 5 Apr 2023 00:07:17 -0300 Subject: Fix VolumeBooster and improve ContextMenuAPI patch (#793) Co-authored-by: V --- src/plugins/volumeBooster.discordDesktop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/volumeBooster.discordDesktop.ts') diff --git a/src/plugins/volumeBooster.discordDesktop.ts b/src/plugins/volumeBooster.discordDesktop.ts index b77af57..ac11215 100644 --- a/src/plugins/volumeBooster.discordDesktop.ts +++ b/src/plugins/volumeBooster.discordDesktop.ts @@ -56,7 +56,7 @@ export default definePlugin({ find: "AudioContextSettingsMigrated", replacement: [ { - match: /(?<=updateAsync\("audioContextSettings".{0,350}return \i\.volume=)\i(?=})/, + match: /(?<=isLocalMute\(\i,\i\),volume:.+?volume:)\i(?=})/, replace: "$&>200?200:$&" }, { -- cgit