@osovitny/anatoly 2.0.46 → 2.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/osovitny-anatoly.umd.js +5 -1
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/services/web-storage.service.js +6 -2
- package/fesm2015/osovitny-anatoly.js +5 -1
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1688,7 +1688,11 @@
|
|
|
1688
1688
|
return this.storage.getItem(key);
|
|
1689
1689
|
};
|
|
1690
1690
|
WebStorageService.prototype.getObject = function (key) {
|
|
1691
|
-
|
|
1691
|
+
var value = this.storage.getItem(key);
|
|
1692
|
+
if (!value) {
|
|
1693
|
+
return null;
|
|
1694
|
+
}
|
|
1695
|
+
return JSON.parse(value);
|
|
1692
1696
|
};
|
|
1693
1697
|
WebStorageService.prototype.remove = function (key) {
|
|
1694
1698
|
this.storage.removeItem(key);
|