If localStorage is not supported, showPause as usual

This commit is contained in:
Sarven Capadisli 2009-12-07 12:12:32 +00:00
parent 189296c5a0
commit 11dab47e2d

View 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();
}