Hacker News new | ask | show | jobs
by ckuijjer 3216 days ago
It listens to the online and offline events (using https://github.com/chrisbolin/react-detect-offline which is really cool). You really have to turn off your network connection.

Or fire the event yourself using window.dispatchEvent(new Event('offline'))