File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ client.init = function init (callback) {
6464 } ) . done ( function success ( serverSettings ) {
6565 if ( serverSettings . runtimeState !== 'loaded' ) {
6666 console . log ( 'Server is still loading data' ) ;
67- $ ( '#loadingMessageText' ) . html ( 'Server is loading data, retrying load in 2 seconds' ) ;
68- window . setTimeout ( window . Nightscout . client . init ( ) , 2000 ) ;
67+ $ ( '#loadingMessageText' ) . html ( 'Server is starting and still loading data, retrying load in 5 seconds' ) ;
68+ window . setTimeout ( window . Nightscout . client . init ( ) , 5000 ) ;
6969 return ;
7070 }
7171 client . settingsFailed = false ;
@@ -77,8 +77,8 @@ client.init = function init (callback) {
7777 // check if we couldn't reach the server at all, show offline message
7878 if ( ! jqXHR . readyState ) {
7979 console . log ( 'Application appears to be OFFLINE' ) ;
80- $ ( '#loadingMessageText' ) . html ( 'Connecting to Nightscout server failed, retrying every 2 seconds' ) ;
81- window . setTimeout ( window . Nightscout . client . init ( ) , 2000 ) ;
80+ $ ( '#loadingMessageText' ) . html ( 'Connecting to Nightscout server failed, retrying every 5 seconds' ) ;
81+ window . setTimeout ( window . Nightscout . client . init ( ) , 5000 ) ;
8282 return ;
8383 }
8484
You can’t perform that action at this time.
0 commit comments