|
|
@ -152,6 +152,7 @@
|
|
|
|
if (e.name === 'HTTPError' && e.code == -1) {
|
|
|
|
if (e.name === 'HTTPError' && e.code == -1) {
|
|
|
|
// Failed to connect to server
|
|
|
|
// Failed to connect to server
|
|
|
|
if (navigator.onLine) {
|
|
|
|
if (navigator.onLine) {
|
|
|
|
|
|
|
|
console.log('retrying in 1 minute');
|
|
|
|
setTimeout(init, 60000);
|
|
|
|
setTimeout(init, 60000);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log('offline');
|
|
|
|
console.log('offline');
|
|
|
|