navigator.onLine seems to be not reliable

What is the proper way to handle offline mode? I used navigator.onLine but it’s value seems to be not reliable. E.g. I enable airplane mode and/or switch off wifi but the value of onLine is still true. Is there any way to force refresh the value or use any other flags to handle it?

I just tested navigator.onLine and it is working on OSX but document.isConnected always returns true.

Yep, that’s what I’m saying :slight_smile: Sometimes it works, but sometimes it doesn’t.