Skip to content

Commit eca42dd

Browse files
author
Emmanouil Konstantinidis
committed
Revert setting audio in store's init
1 parent adabd09 commit eca42dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/stores/sound-notification.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ var SoundNotificationStore = Reflux.createStore({
1010

1111
init: function () {
1212
this._previousNotifications = [];
13-
this._audio = new Audio('sounds/digi.wav');
1413
},
1514

1615
playSound: function () {
17-
this._audio.play();
16+
var audio = new Audio('sounds/digi.wav');
17+
audio.play();
1818
},
1919

2020
showNotification: function (countNew, response, latestNotification) {

0 commit comments

Comments
 (0)