Skip to content

Commit dea18ed

Browse files
committed
bug fixes from last commit
1 parent 086b5fa commit dea18ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function setupWithUserSettings(){
161161
//secondsLeft when app closed - seconds passed since exit
162162
let secondsLeft = saveState.timeLeft - ((Date.now() - parseInt(saveState.closeTime))/1000);
163163
secondsLeft <= 0 ? 0 : Math.ceil(secondsLeft);
164-
countdownSeconds = saveState.secondsLeft;
164+
countdownSeconds = secondsLeft;
165165
flow = saveState.flow;
166166
currentIntervalTime = saveState.state;
167167
currentSprint = saveState.sprint;
@@ -171,8 +171,7 @@ function setupWithUserSettings(){
171171
}
172172
else{
173173
saveState.counting ? play() : pause();
174-
currentIntervalTime = saveState.state;
175-
setupNextInterval(currentIntervalTime, countDownseconds, saveState.text, secondsToAngle(currentIntervalTime - countDownseconds), currentSprint);
174+
setupNextInterval(currentIntervalTime, countdownSeconds, saveState.text, secondsToAngle(currentIntervalTime - countdownSeconds), currentSprint);
176175
}
177176
}
178177
catch (err) {

app/style.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import document from "document";
66
const background = document.getElementById("background");
77
const backgroundColor = document.getElementsByClassName("backgroundColor")
88
const progressArc = document.getElementById("progressArc");
9+
const backgroundArc = document.getElementById("backgroundArc");
910
const countdown = document.getElementById("countdown");
1011
const sprintCounter = document.getElementById("sprintCounter");
1112
const playPauseButton = document.getElementById("playPauseButton");

0 commit comments

Comments
 (0)