Compare commits
No commits in common. "12b45957e7c3c3f7385eb172fa9600b77710bbfb" and "a6ebf1034e7a0e341afa9d5706c7c5a934179e5f" have entirely different histories.
12b45957e7
...
a6ebf1034e
2 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ 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}`);
|
const audio = new Audio(`/sounds/${soundName}.mp3`);
|
||||||
this.audioCache.set(soundName, audio);
|
this.audioCache.set(soundName, audio);
|
||||||
return audio;
|
return audio;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue