summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 3bd875c6..92fed8e1 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1328,7 +1328,8 @@ angular.module('zmApp', [
$rootScope.online = true;
$timeout(function () {
- var networkState = navigator.connection.type;
+ var networkState="browser not supported";
+ if (navigator.connection) networkState = navigator.connection.type;
NVRDataModel.debug("Detected network type as: " + networkState);
var strState = NVRDataModel.getBandwidth();
NVRDataModel.debug("getBandwidth() normalized it as: " + strState);