Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
12b45957e7 |
|||
c4802546ab |
2 changed files with 1 additions and 2 deletions
|
@ -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],
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue