Skip to content

Commit

Permalink
Added notification sound
Browse files Browse the repository at this point in the history
  • Loading branch information
pnschumacher committed Jun 25, 2021
1 parent e01b601 commit 2b94192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file added src/game/app/client/audio/notification_sound.mp3
Binary file not shown.
3 changes: 3 additions & 0 deletions src/game/app/client/views/js/NotificationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class NotificationBar extends ViewWithLanguageData {

eventManager;
noticiationSound;

/**
* Creates an instance of NotificationBar
Expand All @@ -24,6 +25,7 @@ class NotificationBar extends ViewWithLanguageData {
NotificationBar.instance = this;

this.eventManager = eventManager;
this.noticiationSound = new Audio('../client/audio/notification_sound.mp3');

$('#unreadNotif').text($("#notifBar > div").length);

Expand Down Expand Up @@ -249,6 +251,7 @@ class NotificationBar extends ViewWithLanguageData {
}

$('#notifBar').scrollTop(0);
this.noticiationSound.play();
}

removeNotifDiv(id) {
Expand Down

0 comments on commit 2b94192

Please sign in to comment.