Skip to content
Snippets Groups Projects
Commit c05f618f authored by Fredrik Baksaas's avatar Fredrik Baksaas
Browse files

Endra style så footer alltid er på bunn, fjernet console.log fra js

parent ba37b66f
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
body {
font-family: 'Montserrat', sans-serif;
background-color: #b82a31;
min-height: calc(1080px - 106px);
min-height: calc(100vh);
display: flex;
flex-direction: column;
}
......
if(localStorage.getItem("handlekurv") == null){
const handlekurv = [];
localStorage.setItem("handlekurv", JSON.stringify(handlekurv));
console.log(localStorage.getItem("handlekurv"));
console.log("la til ny");
}else{
console.log(localStorage.getItem("handlekurv"));
console.log("brukte gamle");
}
const varer = [
......
......@@ -3,11 +3,6 @@
if(localStorage.getItem("handlekurv") == null){
const handlekurv = [];
localStorage.setItem("handlekurv", JSON.stringify(handlekurv));
console.log(localStorage.getItem("handlekurv"));
console.log("la til ny");
}else{
console.log(localStorage.getItem("handlekurv"));
console.log("brukte gamle");
}
const handlekurv = JSON.parse(localStorage.getItem("handlekurv"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment