Fix CustomSounds

This commit is contained in:
thororen1234 2024-09-11 00:31:17 -04:00
parent 83822aba38
commit cc6db0b72b
4 changed files with 2 additions and 2 deletions

View file

@ -59,8 +59,8 @@ export default definePlugin({
replacement: [ replacement: [
// override URL // override URL
{ {
match: /(?<=new Audio;\i\.src=)\i\([0-9]+\)\("\.\/"\.concat\(this\.name,"\.mp3"\)/, match: /\i\([0-9]+\)\(.{1,20}(\i),"\.mp3"\)/,
replace: "$self.findOverride(this.name)?.url || $&" replace: "$self.findOverride($1)?.url || $&"
}, },
// override volume // override volume
{ {