fix order

This commit is contained in:
Nicolas Constant 2019-11-23 18:24:53 -05:00
parent 342742b730
commit 5fc7211adb
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 3 additions and 3 deletions

View File

@ -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]