Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binaryapparatus
· 9y ago · 0 comments
Doesn't work on FreeBSD/firefox? First I put interface down, so no network access, second try I physically pulled cable out. Nothing happens.
Comments
[–]
gberger
9y ago
As a workaround, run this: window.dispatchEvent(new Event('offline'))
[–]
binaryapparatus
OP
9y ago
That worked, thanks.
[–]
wlkr
9y ago
I found it worked in Firefox by going to File -> Work Offline but I'm on macOS.
[–]
mjgoins
9y ago
Same with firefox on debian. I sure hope this article is good after I put so much work into enabling it.
[–]
hatsunearu
9y ago
What a stupid and annoying gimmick. Author couldn't even be assed to check if it isn't horribly broken in a major browser.
[–]
0xffff2
9y ago
Major browser and specific OS. The gimmick works fine in Firefox on Windows 10.
[–]
hatsunearu
9y ago
Didn't work on my machine; it was FX and Win 10. Didn't even test it with my Linux laptop.