Skip to content

Commit 3cf5d3e

Browse files
committed
MAGETWO-63635: [GitHub] Checkout does not load in Safari (private mode) #7942
1 parent 62667cb commit 3cf5d3e

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/core/storage

1 file changed

+6
-1
lines changed

app/code/Magento/Ui/view/base/web/js/lib/core/storage/local.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ define([
8585
*/
8686
function getRoot() {
8787
var data = localStorage.getItem(root);
88+
var result = {};
8889

89-
return !_.isNull(data) ? JSON.parse(data) : {};
90+
if (!_.isNull(data) && typeof(data) != 'undefined') {
91+
result = JSON.parse(data);
92+
}
93+
94+
return result;
9095
}
9196

9297
/**

0 commit comments

Comments
 (0)