Skip to content

Commit 3fdf5aa

Browse files
author
Emmanouil Konstantinidis
committed
Play sound on notications
1 parent 2d3d002 commit 3fdf5aa

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

sounds/click.wav

20.5 KB
Binary file not shown.

sounds/digi.wav

32.1 KB
Binary file not shown.

src/js/stores/notifications.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ var NotificationsStore = Reflux.createStore({
1616
updateTrayIcon: function (notifications) {
1717
if (notifications.length > 0) {
1818
ipc.sendChannel('update-icon', 'TrayActive');
19+
20+
var audio = new Audio('sounds/digi.wav');
21+
audio.play();
22+
1923
} else {
2024
ipc.sendChannel('update-icon', 'TrayIdle');
2125
}

0 commit comments

Comments
 (0)