Bell sound on wanted calls. Closes #117

This commit is contained in:
Ian Renton
2026-08-15 12:02:40 +01:00
parent 3006ee38cb
commit fe4826b729
14 changed files with 50 additions and 29 deletions
+5 -1
View File
@@ -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) {