mirror of https://github.com/calzoneman/sync.git
Fix poll timestamps with no unit
This commit is contained in:
parent
0a94da4d13
commit
5f773d46c9
|
@ -757,7 +757,7 @@ function showPollMenu() {
|
|||
var m;
|
||||
if (m = t.match(/^(\d+):(\d+)$/)) {
|
||||
return parseInt(m[1], 10) * 60 + parseInt(m[2], 10);
|
||||
} else if (t.match(/^(\d+)$/)) {
|
||||
} else if (m = t.match(/^(\d+)$/)) {
|
||||
return parseInt(m[1], 10);
|
||||
} else {
|
||||
throw new Error("Invalid timeout value '" + t + "'");
|
||||
|
|
Loading…
Reference in New Issue