don't confirm close if time displayed is 0

master
Matt Huntington 6 years ago
parent 5f3cd02c6c
commit 7c4e746fa2

@ -5,7 +5,6 @@
MVP MVP
- display how many 5/10min blocks have passed - display how many 5/10min blocks have passed
- don't confirm close if time displayed is 0
- set alarm for after certain times have passed - set alarm for after certain times have passed
- cleanup - cleanup
- deploy - deploy
@ -106,5 +105,7 @@ window.onbeforeunload = function(){
updateSavedPreviousSeconds(); updateSavedPreviousSeconds();
} }
window.localStorage.setItem('savedPreviousSeconds', savedPreviousSeconds); window.localStorage.setItem('savedPreviousSeconds', savedPreviousSeconds);
return 'Good bye'; if(savedPreviousSeconds > 0){
return 'Good bye';
}
} }

Loading…
Cancel
Save