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/ionicUtils.js | 1 + 1 file changed, 1 insertion(+) (limited to 'www/js/ionicUtils.js') 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