mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Bell sound on wanted calls. Closes #117
This commit is contained in:
+5
-1
@@ -83,7 +83,11 @@ function startSSEConnection() {
|
||||
|
||||
// Ping if we need to
|
||||
if ($("#pingOnNewSpots")[0].checked) {
|
||||
new Audio("/audio/ping.mp3").play();
|
||||
if (callWanted(newSpot["dx_call"])) {
|
||||
new Audio("/static/audio/bell.mp3").play();
|
||||
} else {
|
||||
new Audio("/static/audio/ping.mp3").play();
|
||||
}
|
||||
}
|
||||
},
|
||||
onerror(err) {
|
||||
|
||||
Reference in New Issue
Block a user