Skip to content

Commit

Permalink
Fix ms to seconds in waiting modal with timer
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Oct 30, 2024
1 parent ddc896d commit dbe333a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/resources/libs/Icestudio/GUI/WafleModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class WafleModal{
}

waitingSeconds(seconds,title,msg){
const milis=Math.floor(seconds*1000);
const milis=parseInt(Math.floor(seconds*1000));
console.log('WAIT==>',seconds,title,msg);
let timerInterval;
Swal.fire({
Expand All @@ -20,7 +20,7 @@ class WafleModal{
Swal.showLoading();
const timer = Swal.getPopup().querySelector("b");
timerInterval = setInterval(() => {
timer.textContent = `${Swal.getTimerLeft()}`;
timer.textContent = `${parseInt(Math.round(Swal.getTimerLeft()/1000))}`;
}, 100);
},
willClose: () => {
Expand Down

0 comments on commit dbe333a

Please sign in to comment.