From 5f773d46c9f1315d8d8978e1a92db59307466b2a Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 5 Jun 2016 23:01:03 -0700 Subject: [PATCH] Fix poll timestamps with no unit --- www/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/util.js b/www/js/util.js index 7ac24530..345722c0 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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 + "'");