Log when we start waiting for an online event
// FREEBIE
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
if (navigator.onLine) {
|
||||
setTimeout(init, 60000);
|
||||
} else {
|
||||
console.log('offline');
|
||||
window.addEventListener('online', init);
|
||||
}
|
||||
return;
|
||||
|
Reference in New Issue
Block a user