diff options
author | raylu <raylu@mixpanel.com> | 2011-08-09 01:53:58 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-08-09 01:53:58 -0700 |
commit | b5f572860a2a8d94103d2b27a7f170243f885e97 (patch) | |
tree | 2e09d28beaa44fcdfbffb1cba5b82746147fb12c /static/script.js | |
parent | c37572b1dc72fb604bd57ffe27d3f1a7d45cdc0e (diff) | |
download | audioaxis-b5f572860a2a8d94103d2b27a7f170243f885e97.tar.xz |
fix 2 bugs related to empty playlists
Diffstat (limited to 'static/script.js')
-rw-r--r-- | static/script.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js index bc05fad..bcb531b 100644 --- a/static/script.js +++ b/static/script.js @@ -4,7 +4,7 @@ var player; var litColor = '#eee'; var dimmedColor = '#555'; var interval; -var timestamp = '0'; +var timestamp = '-1'; $(document).ready(function () { $('body').click(function (e) { @@ -68,6 +68,8 @@ function handleUpdates(data) { break; } } + if (timestamp == '-1') + timestamp = '0'; getUpdates(); } |