I\'m writing a simple Chrome extension, the behavior is needed to detect if device is connect to the Internet. I\'m currently trying to connect to ping service for checking netw
On my MacBook navigator.onLine works as expected if I turn wifi on and off.
console.log("Is the browser online? "+ navigator.onLine);
With and without wifi enabled...