]> git.wh0rd.org Git - chrome-ext/music-player-client.git/commitdiff
fix NaN check
authorMike Frysinger <vapier@gentoo.org>
Sun, 25 Aug 2013 02:08:11 +0000 (22:08 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 25 Aug 2013 02:08:11 +0000 (22:08 -0400)
main.js

diff --git a/main.js b/main.js
index 1e83a3b2b6c0b996f34e4b30e12478ccea15554d..c0436df50ddc4ad0faf2f6eb8a19d469e211ca8b 100644 (file)
--- 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)