WICG / netinfo

https://wicg.github.io/netinfo/
Other
95 stars 28 forks source link

"none" not just for explicitly disabled connections #1

Closed sicking closed 10 years ago

sicking commented 10 years ago

The spec currently says that connection.type === "none" is for when the connection is

explicitly disabled, such as in "airplane" mode

I think it should be used whenever we know that we have no connection, i.e. whenever navigator.onLine === false.