summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-07 12:12:32 +0000
committerSarven Capadisli <csarven@status.net>2009-12-07 12:12:32 +0000
commit11dab47e2d91c7f88819a1576609d7ef7f63ee64 (patch)
tree6f5fa8009872db828a5e7a36d31767978d17c81d
parent189296c5a0130c151bed5e96367bcf33e7ac1b2f (diff)
If localStorage is not supported, showPause as usual
-rw-r--r--plugins/Realtime/realtimeupdate.js5
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();
}