diff options
author | Sarven Capadisli <csarven@status.net> | 2009-12-07 12:12:32 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-12-07 12:12:32 +0000 |
commit | 11dab47e2d91c7f88819a1576609d7ef7f63ee64 (patch) | |
tree | 6f5fa8009872db828a5e7a36d31767978d17c81d /plugins/Realtime | |
parent | 189296c5a0130c151bed5e96367bcf33e7ac1b2f (diff) |
If localStorage is not supported, showPause as usual
Diffstat (limited to 'plugins/Realtime')
-rw-r--r-- | plugins/Realtime/realtimeupdate.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 13b723589..56a52433f 100644 --- a/plugins/Realtime/realtimeupdate.js +++ b/plugins/Realtime/realtimeupdate.js @@ -201,7 +201,10 @@ RealtimeUpdate = { initPlayPause: function() { - if (typeof(localStorage) != 'undefined') { + if (typeof(localStorage) == 'undefined') { + RealtimeUpdate.showPause(); + } + else { if (localStorage.getItem('RealtimeUpdate_paused') === 'true') { RealtimeUpdate.showPlay(); } |