From: Mike Frysinger Date: Sun, 25 Aug 2013 02:08:11 +0000 (-0400) Subject: fix NaN check X-Git-Tag: v3.0~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ff2c6c19a379a1ea3ab25038fadb17cc9a104c4;p=chrome-ext%2Fmusic-player-client.git fix NaN check --- 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)