5 ms·
In chrome network tab or /etc/hosts, block requests to ipv4.icanhazip.com and it'll think you're offline
by meritt 8y ago
In chrome network tab or /etc/hosts, block requests to ipv4.icanhazip.com and it'll think you're offline
- dillondoyle 8y agoOr just hit offline checkbox in chrome dev tools
- meritt 8y agoEven better. Is there seriously not a better way to check online/offline status that polling a URL? Seems so sloppy.
- pritambaral 8y agohttps://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOn...
- deleted 8y ago[deleted]