djmaze 2020-09-24 15:08:57 +02:00
parent d291716489
commit 4257d9ca78
8 changed files with 16 additions and 37 deletions

View file

@ -84,12 +84,6 @@ class NotificationUserStore {
};
}
this.computers();
this.initNotificationPlayer();
}
computers() {
this.isDesktopNotificationSupported = ko.computed(
() => DesktopNotification.NotSupported !== this.desktopNotificationPermissions()
);
@ -99,6 +93,8 @@ class NotificationUserStore {
DesktopNotification.NotSupported === this.desktopNotificationPermissions() ||
DesktopNotification.Denied === this.desktopNotificationPermissions()
);
this.initNotificationPlayer();
}
initNotificationPlayer() {