From 7e6d5602ad08bc7f0054de92ca82768208c48d6b Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 14 Apr 2018 15:12:20 -0400 Subject: #611 #606 - many re-auth leaks --- www/js/EventServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index ee606a63..2d5831e9 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -292,7 +292,7 @@ angular.module('zmApp.controllers') { //emit alarm details - this is when received over websockets - $rootScope.$emit('alarm', + $rootScope.$broadcast('alarm', { message: listOfMonitors }); @@ -658,7 +658,7 @@ angular.module('zmApp.controllers') $rootScope.tappedEid = 0; $rootScope.tappedMid = 0; } - $rootScope.$emit('process-push'); + $rootScope.$broadcast('process-push'); } else // app is foreground -- cgit v1.2.3