diff --git a/app/resources/libs/Icestudio/GUI/WafleModal.js b/app/resources/libs/Icestudio/GUI/WafleModal.js index 119d7fe6..c0f9c5c9 100644 --- a/app/resources/libs/Icestudio/GUI/WafleModal.js +++ b/app/resources/libs/Icestudio/GUI/WafleModal.js @@ -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({ @@ -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: () => {