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
+28-13Lines changed: 28 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,12 @@ if (!exports.settings) {
23
23
longBreak: 900000,//15 minute long break
24
24
numShortBreaks: 3,//3 short breaks for every long break
25
25
pausedTimerExpireTime: 21600000,//If the timer was left paused for >6 hours, reset it on next launch
26
-
widget: false//If a widget is added in the future, whether the user wants it
26
+
widget: false,//If a widget is added in the future, whether the user wants it
27
+
notifyShortPattern: "=",// pattern for short break notification
28
+
notifyLongPattern: "=",// pattern for long break notification
29
+
notifyWorkPattern: "==",// pattern for work session notification
30
+
notifyReps: 2,// number of pattern repetitions
31
+
notifyRepsDelay: 50,// delay between repetitions (in ms)
27
32
};
28
33
}
29
34
@@ -80,13 +85,6 @@ exports.getNextPhase = function () {
80
85
81
86
//Change to the next phase and update numShortBreaks, and optionally vibrate. DOES NOT WRITE STATE CHANGE TO STORAGE!
82
87
exports.nextPhase=function(vibrate){
83
-
a={
84
-
startTime: 0,//When the timer was last started. Difference between this and now is how long timer has run continuously.
85
-
pausedTime: 0,//When the timer was last paused. Used for expiration and displaying timer while paused.
86
-
elapsedTime: 0,//How much time the timer had spent running before the current start time. Update on pause or user skipping stages.
87
-
phase: exports.PHASE_WORKING,//What phase the timer is currently in
88
-
numShortBreaks: 0//Number of short breaks that have occured so far
89
-
}
90
88
letnow=(newDate()).getTime();
91
89
exports.state.startTime=now;//The timer is being reset, so say it starts now.
92
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.
@@ -105,13 +103,30 @@ exports.nextPhase = function (vibrate) {
0 commit comments