mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
Check if I can fix Netlify's deploy bug
This commit is contained in:
@@ -181,19 +181,20 @@ const MainPomodoroTimer = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (minutes === 0 && seconds === 0) {
|
if (minutes === 0 && seconds === 0) {
|
||||||
setTimerActivity(false)
|
|
||||||
|
|
||||||
playAudio('work')
|
|
||||||
|
|
||||||
if (notificationPermission) {
|
|
||||||
|
|
||||||
new Notification('Pomodoro ended');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
setTimeout( () => {
|
||||||
if (restCounter !== 3){
|
|
||||||
|
setTimerActivity(false)
|
||||||
|
|
||||||
|
playAudio('work')
|
||||||
|
|
||||||
|
if (notificationPermission) {
|
||||||
|
|
||||||
|
new Notification('Pomodoro ended');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (restCounter !== 3){
|
||||||
|
|
||||||
setTimeout( () => {
|
|
||||||
setPomodoroCounter('Pomodoros')
|
setPomodoroCounter('Pomodoros')
|
||||||
|
|
||||||
setRestCounter((restCounter + 1))
|
setRestCounter((restCounter + 1))
|
||||||
@@ -201,35 +202,31 @@ const MainPomodoroTimer = (props) => {
|
|||||||
setBreak(1, 0)
|
setBreak(1, 0)
|
||||||
setWeAreInBreakTime(true)
|
setWeAreInBreakTime(true)
|
||||||
|
|
||||||
}, 1000)
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
if (restCounter === 3) {
|
||||||
|
|
||||||
if (restCounter === 3) {
|
|
||||||
|
|
||||||
setTimeout( () => {
|
|
||||||
setPomodoroCounter('Pomodoros')
|
setPomodoroCounter('Pomodoros')
|
||||||
setRestCounter((restCounter + 1))
|
setRestCounter((restCounter + 1))
|
||||||
|
|
||||||
setBreak(0, 1)
|
setBreak(0, 1)
|
||||||
setWeAreInBreakTime(true)
|
setWeAreInBreakTime(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!alreadyCountingEnd) {
|
||||||
|
const time = getAndFormatCurrentTime(props.KonamiCodeActive)
|
||||||
|
|
||||||
}, 1000)
|
props.setEndTime(time)
|
||||||
}
|
setAlreadyCountingEnd(true)
|
||||||
|
|
||||||
|
props.setLetsUpload(true)
|
||||||
|
|
||||||
if (!alreadyCountingEnd) {
|
document.title = randomText('rest')
|
||||||
const time = getAndFormatCurrentTime(props.KonamiCodeActive)
|
}
|
||||||
|
}, 1000)
|
||||||
props.setEndTime(time)
|
|
||||||
setAlreadyCountingEnd(true)
|
|
||||||
|
|
||||||
props.setLetsUpload(true)
|
|
||||||
|
|
||||||
document.title = randomText('rest')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (minutes >= 0 || seconds > 0) {
|
if (minutes >= 0 || seconds > 0) {
|
||||||
|
|
||||||
idTimeOut = startTimer()
|
idTimeOut = startTimer()
|
||||||
@@ -241,16 +238,17 @@ const MainPomodoroTimer = (props) => {
|
|||||||
getFavicon().href = './img/rest favicon.ico'
|
getFavicon().href = './img/rest favicon.ico'
|
||||||
|
|
||||||
if (minutes === 0 && seconds === 0) {
|
if (minutes === 0 && seconds === 0) {
|
||||||
setTimerActivity(false)
|
|
||||||
|
|
||||||
playAudio('rest')
|
|
||||||
|
|
||||||
if (notificationPermission) {
|
|
||||||
|
|
||||||
new Notification('Rest ended');
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout( () => {
|
setTimeout( () => {
|
||||||
|
|
||||||
|
setTimerActivity(false)
|
||||||
|
|
||||||
|
playAudio('rest')
|
||||||
|
|
||||||
|
if (notificationPermission) {
|
||||||
|
|
||||||
|
new Notification('Rest ended');
|
||||||
|
}
|
||||||
|
|
||||||
if (restCounter === 4) {
|
if (restCounter === 4) {
|
||||||
setPomodoroCounter('Long Rest')
|
setPomodoroCounter('Long Rest')
|
||||||
|
|||||||
Reference in New Issue
Block a user