Merge pull request 'refactor: remove unused directive and clean audio path' (!199) from task/fix-audio into main
All checks were successful
Release / Release (push) Successful in 1m17s
Release / Build Backend Image (push) Successful in 23s
Release / Build Frontend Image (push) Successful in 27s

Reviewed-on: #199
Reviewed-by: Jan K9f <jan@kjan.email>
This commit is contained in:
Jan K9f 2025-05-15 16:13:07 +00:00
commit 12b45957e7
No known key found for this signature in database
GPG key ID: 944223E4D46B7412
2 changed files with 1 additions and 2 deletions

View file

@ -18,7 +18,6 @@ import { SoundInitializerService } from './shared/services/sound-initializer.ser
LoginComponent, LoginComponent,
RegisterComponent, RegisterComponent,
RecoverPasswordComponent, RecoverPasswordComponent,
PlaySoundDirective,
], ],
templateUrl: './app.component.html', templateUrl: './app.component.html',
hostDirectives: [PlaySoundDirective], hostDirectives: [PlaySoundDirective],

View file

@ -11,7 +11,7 @@ export class AudioService {
return this.audioCache.get(soundName)!; return this.audioCache.get(soundName)!;
} }
const audio = new Audio(`/sounds/${soundName}.mp3`); const audio = new Audio(`/sounds/${soundName}`);
this.audioCache.set(soundName, audio); this.audioCache.set(soundName, audio);
return audio; return audio;
} }