Fix NotificationVolume

This commit is contained in:
Nuckyz 2024-02-27 23:43:03 -03:00
parent e0166ef1e6
commit 7de54a294f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -27,8 +27,8 @@ export default definePlugin({
{
find: "_ensureAudio(){",
replacement: {
match: /onloadeddata=\(\)=>\{.\.volume=/,
replace: "$&$self.settings.store.notificationVolume/100*"
match: /(?=Math\.min\(\i\.\i\.getOutputVolume\(\)\/100)/,
replace: "$self.settings.store.notificationVolume/100*"
},
},
],