From: Sarven Capadisli Date: Mon, 7 Dec 2009 12:12:32 +0000 (+0000) Subject: If localStorage is not supported, showPause as usual X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11dab47e2d91c7f88819a1576609d7ef7f63ee64;p=quix0rs-gnu-social.git If localStorage is not supported, showPause as usual --- diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 13b7235892..56a52433f4 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(); }