forked from GNUsocial/gnu-social
If localStorage is not supported, showPause as usual
This commit is contained in:
parent
189296c5a0
commit
11dab47e2d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user