Log when we start waiting for an online event
// FREEBIE
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user