changed navigator deprecation

navigator.network.connection into navigator.connection