You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/pomoplus/common.js
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,6 @@ exports.getNextPhase = function () {
85
85
86
86
//Change to the next phase and update numShortBreaks, and optionally vibrate. DOES NOT WRITE STATE CHANGE TO STORAGE!
87
87
exports.nextPhase=function(vibrate){
88
-
a={
89
-
startTime: 0,//When the timer was last started. Difference between this and now is how long timer has run continuously.
90
-
pausedTime: 0,//When the timer was last paused. Used for expiration and displaying timer while paused.
91
-
elapsedTime: 0,//How much time the timer had spent running before the current start time. Update on pause or user skipping stages.
92
-
phase: exports.PHASE_WORKING,//What phase the timer is currently in
93
-
numShortBreaks: 0//Number of short breaks that have occured so far
94
-
}
95
88
letnow=(newDate()).getTime();
96
89
exports.state.startTime=now;//The timer is being reset, so say it starts now.
97
90
exports.state.pausedTime=now;//This prevents a paused timer from having the start time moved to the future and therefore having been run for negative time.
0 commit comments