More logging
// FREEBIE
This commit is contained in:
parent
f6b35ffbfc
commit
f00d118c93
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue