I'm sorry. I do not speak English well.
"navigator.onLine" API does not work properly in Windows.
Even if the network is disconnected, only true is returned.
The same thing happens in Chrome, Firefox, and Edge.
However, it works fine on mac.
// I disconnected my computer from the network and ran the code below from the console.
console.log('network status', navigator.onLine);
// => true
What is the reason?