angular.module("ionic.utils",[]).factory("$localstorage",["$window",function(t){return{set:function(o,n){t.localStorage[o]=n},get:function(o,n){return t.localStorage[o]||n},setObject:function(o,n){t.localStorage[o]=JSON.stringify(n)},getObject:function(o){return JSON.parse(t.localStorage[o]||"{}")}}}]);