Go to cart view after new cart was created.

This commit is contained in:
Mario Zechner 2023-06-16 19:05:47 +02:00
parent ea5c133003
commit c7e7d27b53

View File

@ -11,7 +11,7 @@ function newCart() {
return; return;
} }
model.carts.add(name); model.carts.add(name);
location.href = `${location.pathname}?name=${encodeURIComponent(name)}`; location.href = `cart.html?name=${encodeURIComponent(name)}`;
} }
function importCarts(importedCarts) { function importCarts(importedCarts) {