Ping on new spots option

This commit is contained in:
Ian Renton
2026-04-10 07:51:26 +01:00
parent 1ed175e099
commit 36dba30089
12 changed files with 40 additions and 21 deletions

View File

@@ -61,6 +61,11 @@ function startSSEConnection() {
// Add the new spot to table
addSpotToTopOfTable(newSpot, true);
// Ping if we need to
if ($("#pingOnNewSpots")[0].checked) {
new Audio("/audio/ping.mp3").play();
}
};
evtSource.onerror = function(err) {