diff options
-rw-r--r-- | itjs/state.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/itjs/state.html b/itjs/state.html index 08ab639..3029932 100644 --- a/itjs/state.html +++ b/itjs/state.html @@ -5,11 +5,13 @@ return <<<EOF <head> <title></title> <script type="text/javascript"> +var state_load_attempts = 0; function state_onload() { - if (parent.it_state) + if (state_load_attempts < 30) { - if (parent.it_state.ready) + state_load_attempts++; + if (parent.it_state && parent.it_state.ready) parent.setTimeout(parent.it_state_restore_history, 1); else window.setTimeout(state_onload, 90); |