bugfix in cart

master
Gustavo Luigi 2022-11-21 16:25:06 -03:00
parent 284397ca1f
commit 3d42690169
2 changed files with 37 additions and 33 deletions

View File

@ -1,4 +1,7 @@
$(window).on('load', function () {
$.ajaxSetup({
headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') },
});
if (localStorage.getItem("dismiss-message") == 1) $('.alert-dismissible').remove();
else $('.alert-dismissible').show();
$('#btn-close-message').click(function () { localStorage.setItem("dismiss-message", 1); });

View File

@ -1,6 +1,7 @@
<!doctype html>
<html lang="{{str_replace('_', '-', app()->getLocale())}}">
<head>
<meta name="csrf-token" content="{{csrf_token()}}"/>
<meta name="checkout" content="{{url('/checkout')}}">
<meta name="get-contents" content="{{url('/api/contents')}}">
<link rel="icon" type="image/x-icon" href="{{storage('assets/images/favicon.ico')}}">