showing results for - "local storage ha"
Maja
07 Jul 2020
1
2function set(){
3    var sendJson = JSON.stringify(allPerfume);
4    localStorage.setItem("allPerfume", sendJson);
5}
6
7function get() {
8    var getJson = localStorage.getItem("allPerfume")
9    if (getJson) {
10        allPerfume = JSON.parse(getJson);
11    }
12}