Fix poll timestamps with no unit

This commit is contained in:
calzoneman 2016-06-05 23:01:03 -07:00
parent 0a94da4d13
commit 5f773d46c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "'");