Merge pull request #197 from NicolasConstant/develop
fix order init sound
This commit is contained in:
commit
6730de097c
|
@ -92,9 +92,7 @@ export class UserNotificationService {
|
|||
|
||||
private setNotificationSound() {
|
||||
let settings = this.toolsService.getSettings();
|
||||
let soundId = settings.notificationSoundFileId;
|
||||
|
||||
if(this.soundFileId === soundId) return;
|
||||
let soundId = settings.notificationSoundFileId;
|
||||
|
||||
if(!soundId){
|
||||
soundId = '0';
|
||||
|
@ -102,6 +100,8 @@ export class UserNotificationService {
|
|||
this.toolsService.saveSettings(settings);
|
||||
}
|
||||
|
||||
if(this.soundFileId === soundId) return;
|
||||
|
||||
var sound = this.getAllNotificationSounds().find(x => x.id === soundId);
|
||||
this.sound = new Howl({
|
||||
src: [sound.path]
|
||||
|
|
Loading…
Reference in New Issue