add local storage key 'products'
parent
b52facf112
commit
b860d01275
|
@ -191,3 +191,14 @@
|
|||
</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
|
Loading…
Reference in New Issue