GetNetworkStatus does not work with chrome 61

GetNetworkStatus does not work with chrome 61

  

From chrome 61 navigator.connection becomes object and this code fails. 

if (typeof navigator.connection !== "undefined") {

    //In a mobile device

    $parameters.NetworkType = navigator.connection.type;

} else {

    //In a web browser

    $parameters.NetworkType = "unknown"; //TO-DO: Improve this!!!

}

Why not use navigator.onLine instead?


Solution

Hi Vladimir

You need to update the component as mentioned here

Solution

Good day, Vladimir Kulgun. Have you been able to resolve your issue?