Log when we start waiting for an online event
// FREEBIE
This commit is contained in:
parent
823f570955
commit
21667d9181
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@
|
||||||
if (navigator.onLine) {
|
if (navigator.onLine) {
|
||||||
setTimeout(init, 60000);
|
setTimeout(init, 60000);
|
||||||
} else {
|
} else {
|
||||||
|
console.log('offline');
|
||||||
window.addEventListener('online', init);
|
window.addEventListener('online', init);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue