Hacker News new | past | comments | ask | show | jobs | submit login

Doesn't work on FreeBSD/firefox? First I put interface down, so no network access, second try I physically pulled cable out. Nothing happens.



As a workaround, run this: window.dispatchEvent(new Event('offline'))


That worked, thanks.


I found it worked in Firefox by going to File -> Work Offline but I'm on macOS.


Same with firefox on debian. I sure hope this article is good after I put so much work into enabling it.


What a stupid and annoying gimmick. Author couldn't even be assed to check if it isn't horribly broken in a major browser.


Major browser and specific OS. The gimmick works fine in Firefox on Windows 10.


Didn't work on my machine; it was FX and Win 10. Didn't even test it with my Linux laptop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: