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

@ -191,3 +191,14 @@
</section> </section>
</div> </div>
@stop @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