]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If localStorage is not supported, showPause as usual
authorSarven Capadisli <csarven@status.net>
Mon, 7 Dec 2009 12:12:32 +0000 (12:12 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 7 Dec 2009 12:12:32 +0000 (12:12 +0000)
plugins/Realtime/realtimeupdate.js

index 13b72358923ce62b347611a018775a5be657b4e8..56a52433f4bf8852efe25dbfb627d815c637d91b 100644 (file)
@@ -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();
             }