refactor: remove unused directive and clean audio path
All checks were successful
CI / Get Changed Files (pull_request) Successful in 27s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 21s
CI / prettier (pull_request) Successful in 24s
CI / eslint (pull_request) Successful in 29s
CI / Docker frontend validation (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 25s

This commit is contained in:
Jan-Marlon Leibl 2025-05-15 17:12:55 +02:00
commit c4802546ab
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
2 changed files with 1 additions and 2 deletions

View file

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

View file

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