From 8623646c266eb9e99103c9696c09456a42ac0060 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 10 Jan 2018 14:34:56 -0500 Subject: #499 iOS related changes, also handled case where push broadcast can be called before PortalLogin is done - needs to be handled _after_ auth --- www/js/EventModalCtrl.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'www/js/EventModalCtrl.js') diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 6f014de2..86f2b233 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -134,7 +134,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro { NVRDataModel.debug("EventModalCtrl: Re-login detected, resetting everything & re-generating connkey"); - NVRDataModel.stopNetwork("Auth-Success inside EventModalCtrl"); + // NVRDataModel.stopNetwork("Auth-Success inside EventModalCtrl"); $scope.connKey = (Math.floor((Math.random() * 999999) + 1)).toString(); //console.log ("********* OFFSET FROM AUTH SUCC"); $timeout(function() @@ -981,7 +981,15 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro { var cv = document.getElementById("eventchart"); - var ctx = cv.getContext("2d"); + var ctx; + try { + ctx = cv.getContext("2d"); + } + catch (e) { + NVRDataModel.debug ("2D Context ERROR, maybe live play"); + + } + frameoptions = { responsive: true, -- cgit v1.2.3