Hi Cynthia,
Here's the function I wrote for checking if there was any connectivity.
function isConnected() {
var profile = Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile();
if (profile) {
return (profile.getNetworkConnectivityLevel() != Windows.Networking.Connectivity.NetworkConnectivityLevel.none);
}
else {
return false;
}
}
Cheers,
-Jeff