From 2ff2c6c19a379a1ea3ab25038fadb17cc9a104c4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 24 Aug 2013 22:08:11 -0400 Subject: [PATCH] fix NaN check --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 1e83a3b..c0436df 100644 --- a/main.js +++ b/main.js @@ -151,7 +151,7 @@ function do_refresh() { } function update_refresh_timer() { - if (refresh_id != NaN) + if (!isNaN(refresh_id)) window.clearTimeout(refresh_id); var rate = window['opts_refresh'].value * 1000; if (rate > 0) -- 2.39.5