If localStorage is not supported, showPause as usual
This commit is contained in:
parent
189296c5a0
commit
11dab47e2d
@ -201,7 +201,10 @@ RealtimeUpdate = {
|
|||||||
|
|
||||||
initPlayPause: function()
|
initPlayPause: function()
|
||||||
{
|
{
|
||||||
if (typeof(localStorage) != 'undefined') {
|
if (typeof(localStorage) == 'undefined') {
|
||||||
|
RealtimeUpdate.showPause();
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (localStorage.getItem('RealtimeUpdate_paused') === 'true') {
|
if (localStorage.getItem('RealtimeUpdate_paused') === 'true') {
|
||||||
RealtimeUpdate.showPlay();
|
RealtimeUpdate.showPlay();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user