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