Skip to content

Commit

Permalink
Only skip audio notifications if we have an audio id.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 14, 2014
1 parent 5cfd859 commit 27186df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions framework/Core/js/hordecore.js
Expand Up @@ -333,10 +333,12 @@ var HordeCore = {
switch (m.type) {
case 'audio':
// Only play one instance of an alarm sound.
if (this.audios.include(m.flags.id)) {
break;
if (m.flags.id) {
if (this.audios.include(m.flags.id)) {
break;
}
this.audios.push(m.flags.id);
}
this.audios.push(m.flags.id);

if (!this.audio) {
this.audio = new Element('AUDIO');
Expand Down

0 comments on commit 27186df

Please sign in to comment.