Re:Disconnect. Offline only
by amelius on Wednesday August 23, 2017 @08:40AM
(#15080994)
Hmm, in Chromium developer tools, in the Network tab, I set throttling to "Offline", but nothing happened in the page.
[ Parent
| on HN ]
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'))
Worked for me in Chrome 60.0.3112.101
I am on Chrome 60.0.3112.101 too and it works.
Re:Disconnect. Offline only
by branchless on Wednesday August 23, 2017 @09:29AM
(#15081344)
Firefox 54 on linux, didn't work.