Handle offline and online status

Check if your web app is offline/online and show the status and handle it when the user triggers something needing the connection. [Mozilla: Online and offline events](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events)