From 548c4cf8662e0c7b64cb84ff038a7fc548144cd2 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 15 Aug 2018 15:06:22 -0400 Subject: nits --- www/js/PortalLoginCtrl.js | 1 + www/js/app.js | 1 - www/js/ionicUtils.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 5135dffa..c142c536 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -537,5 +537,6 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic NVRDataModel.log("Entering Portal Main"); var loginData; $ionicSideMenuDelegate.canDragContent(true); + }]); diff --git a/www/js/app.js b/www/js/app.js index 5c861a3f..2b3c9990 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -793,7 +793,6 @@ angular.module('zmApp', [ .success(function (datastr) { - console.log ("2 PARSE HERE : "+datastr); var data = JSON.parse(datastr); $rootScope.newBlogPost = ""; if (data.payload.posts.length <= 0) { diff --git a/www/js/ionicUtils.js b/www/js/ionicUtils.js index 5cfa5d7b..c5da1304 100644 --- a/www/js/ionicUtils.js +++ b/www/js/ionicUtils.js @@ -21,6 +21,7 @@ angular.module('ionic.utils', []) $window.localStorage[key] = JSON.stringify(value); }, getObject: function (key) { + return JSON.parse($window.localStorage[key] || '{}'); } }; -- cgit v1.2.3