Skip to content

Commit

Permalink
clear interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3p4ll3 committed Nov 16, 2023
1 parent c2f42c4 commit dce15cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Web-App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ <h5>Remaining Shots: <span id="remaining-shots"></span></h5>

timer = setInterval(function() {
_shots.readValue().then((value) => {
console.log(value)
var enc = new TextDecoder(); // always utf-8
console.log(enc.decode(value));
$('#remaining-shots').text(value)
$('#remaining-shots').text(enc.decode(value))
})

}, 500);
Expand Down

0 comments on commit dce15cf

Please sign in to comment.