WICG / netinfo

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

Example uses "onchange" #2

Closed sicking closed 10 years ago

sicking commented 10 years ago

navigator.connection.addEventListener('onchange', changeHandler)

should be

navigator.connection.addEventListener('typechange', changeHandler)

Also note the lack of "on".