VolumeBooster: fix stream on web based clients (#2916)

Co-authored-by: v <vendicated@riseup.net>
This commit is contained in:
sadan4 2024-09-26 18:26:13 -04:00 committed by GitHub
parent e7956413e2
commit eab0cf9966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,6 +77,11 @@ export default definePlugin({
match: /Math\.max.{0,30}\)\)/,
replace: "arguments[0]"
},
// Fix streams not playing audio until you update them
{
match: /\}return"video"/,
replace: "this.updateAudioElement();$&"
},
// Patch the volume
{
match: /\.volume=this\._volume\/100;/,