[fix] typo, item group route to have parent only for non root

This commit is contained in:
Rushabh Mehta
2017-06-20 14:05:36 +05:30
parent 958b06b129
commit 17e6bb83eb
2 changed files with 6 additions and 5 deletions

View File

@@ -35,8 +35,8 @@ $.extend(shopping_cart, {
});
},
update_cart: function(opts) {
if(fraappe.session.user==="Guest") {
update_cart: function(opts) {
if(frappe.session.user==="Guest") {
if(localStorage) {
localStorage.setItem("last_visited", window.location.pathname);
}