diff options
Diffstat (limited to 'www/js/ionicUtils.js')
| -rw-r--r-- | www/js/ionicUtils.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/www/js/ionicUtils.js b/www/js/ionicUtils.js index 9b8a21ff..ae05293b 100644 --- a/www/js/ionicUtils.js +++ b/www/js/ionicUtils.js @@ -6,13 +6,11 @@ angular.module('ionic.utils', []) -.factory('$localstorage', ['$window', function($window) { +.factory('$localstorage', ['$window', function($window) { return { - - init: function() - { - }, - + + init: function() {}, + set: function(key, value) { $window.localStorage[key] = value; }, @@ -26,4 +24,4 @@ angular.module('ionic.utils', []) return JSON.parse($window.localStorage[key] || '{}'); } }; -}]); +}]);
\ No newline at end of file |
