Skip to content

Commit

Permalink
Update levels.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-annett committed Aug 1, 2024
1 parent 6e0a076 commit 4e85640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcec/speech/levels.html
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,8 @@

updateTimeout = setTimeout(function dispSeconds(lastAudioSeenAt) {
const elapsedMsec = Date.now() - lastAudioSeenAt;
const elapsed = (elapsedMsec / 1000).toFixed(1);
silenceInfo.innerHTML = `silent for ${elapsed} seconds`;
const elapsed = (elapsedMsec / 1000);
silenceInfo.innerHTML = isNaN(elapsed) ? '' : `silent for ${elapsed.toFixed(1)} seconds`;
updateTimeout = setTimeout(dispSeconds, 100,lastAudioSeenAt);
}, 100, event.detail.lastAudioSeenAt);
});
Expand Down

0 comments on commit 4e85640

Please sign in to comment.