document.addEventListener offline