reload page on error
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 28 Aug 2014 14:53:33 +0000 (16:53 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 28 Aug 2014 14:53:36 +0000 (16:53 +0200)
This will hopefully help with stuck jsonp requests

examples/selfcheck.js

index 9436d79..dba40a6 100644 (file)
@@ -61,7 +61,8 @@ function change_page(new_state) {
 
                if ( state == 'error' ) {
                        window.setTimeout(function(){
-                               change_page('start');
+                               //change_page('start');
+                               location.reload();
                        },error_timeout);
                }
        }