Fix NotificationVolume
This commit is contained in:
parent
e0166ef1e6
commit
7de54a294f
|
@ -27,8 +27,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "_ensureAudio(){",
|
find: "_ensureAudio(){",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /onloadeddata=\(\)=>\{.\.volume=/,
|
match: /(?=Math\.min\(\i\.\i\.getOutputVolume\(\)\/100)/,
|
||||||
replace: "$&$self.settings.store.notificationVolume/100*"
|
replace: "$self.settings.store.notificationVolume/100*"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue