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 c11f7f1 commit fd5fea5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Web-App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ <h5>Remaining Shots: <span id="remaining-shots"></span></h5>
} catch (error) {
console.log('Error setting up notifications', error)
timer = setInterval(function() {
let value = _shots.readValue();

$('#remaining-shots').text(value)
_shots.readValue().then((value) => {
$('#remaining-shots').text(value)
})

}, 200);
$('#status').text('Error setting up notifications')
}
Expand Down

0 comments on commit fd5fea5

Please sign in to comment.