From deeec5ff33576e3b57bce7dd24db6aa0d67eb90b Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 15 Oct 2018 09:49:34 -0400 Subject: beautify --- www/js/EventServerSettingsCtrl.js | 52 +++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'www/js/EventServerSettingsCtrl.js') diff --git a/www/js/EventServerSettingsCtrl.js b/www/js/EventServerSettingsCtrl.js index c5857369..6b04eefa 100644 --- a/www/js/EventServerSettingsCtrl.js +++ b/www/js/EventServerSettingsCtrl.js @@ -207,36 +207,36 @@ EventServer.disconnect(); EventServer.init() .then(function (data) { - // console.log("Sending control filter"); - NVRDataModel.debug("Sending Control message 'filter' with monlist=" + monstring + " and interval=" + intervalstring); - EventServer.sendMessage("control", { - type: 'filter', - monlist: monstring, - intlist: intervalstring, - token: $rootScope.apnsToken - }, 1); - - if ($rootScope.apnsToken != "") - // if its defined then this is post init work - // so lets transmit state here - - { - // we need to disable the token - NVRDataModel.debug("Sending token state " + pushstate); - EventServer.sendMessage('push', { - type: 'token', - platform: plat, - token: $rootScope.apnsToken, - state: pushstate + // console.log("Sending control filter"); + NVRDataModel.debug("Sending Control message 'filter' with monlist=" + monstring + " and interval=" + intervalstring); + EventServer.sendMessage("control", { + type: 'filter', + monlist: monstring, + intlist: intervalstring, + token: $rootScope.apnsToken }, 1); + if ($rootScope.apnsToken != "") + // if its defined then this is post init work + // so lets transmit state here + + { + // we need to disable the token + NVRDataModel.debug("Sending token state " + pushstate); + EventServer.sendMessage('push', { + type: 'token', + platform: plat, + token: $rootScope.apnsToken, + state: pushstate + }, 1); + + } + + }, + function (err) { + NVRDataModel.debug("Event Server init failed"); } - }, - function (err) { - NVRDataModel.debug("Event Server init failed"); - } - ); } // no event server configured/enabled -- cgit v1.2.3