From c5ab4dc5069d4c412dc9559a9234f2e67eca0b41 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi Date: Mon, 29 Aug 2022 13:02:15 +0200 Subject: [PATCH] . --- content/contents/produkt.blade.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/contents/produkt.blade.php b/content/contents/produkt.blade.php index b2a58f1..ad30805 100644 --- a/content/contents/produkt.blade.php +++ b/content/contents/produkt.blade.php @@ -198,6 +198,12 @@ localStorage.setItem("products", JSON.stringify(objProducts)); } $(window).load(function(){ + let product = {}; + product["id"] = database.attr("data-id"); + product["name"] = database.attr("data-name"); + objProducts.push(product); + objProducts.splice(index, 1); + updateProductsInLocalStorage(); if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products")); }); */