summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-08 20:29:20 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-08 20:29:20 -0400
commite5cc1c5826f65b5d40892cd92714cc9f070198a9 (patch)
tree8384bbb90d81808e0dca96bee889dd38eb158b43 /www/js/app.js
parenta9273df91eced721b23f311e37b8d820f5951ada (diff)
broadcast handler cleanups and others
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);