add local storage key 'products'

master
Gustavo Luigi 2022-08-29 12:56:18 +02:00
parent b52facf112
commit b860d01275
1 changed files with 11 additions and 0 deletions

View File

@ -190,4 +190,15 @@
</div>
</section>
</div>
@stop
@section('scripts')
<script>
/* let objProducts = [];
function updateProductsInLocalStorage(){
localStorage.setItem("products", JSON.stringify(objProducts));
}
$(window).load(function(){
if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
}); */
</script>
@stop