refactor: remove unused directive and clean audio path #199

Merged
jank merged 1 commit from task/fix-audio into main 2025-05-15 16:13:07 +00:00
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;
}