I'm trying to save a dictionary of functions in localStorage, but it seems to not work.
When I fetch my dictionary it is empty.
          console.log(_funktiot);
          localStorage.setItem("funktiot", JSON.stringify(_funktiot));
          var fun = JSON.parse(localStorage.getItem("funktiot"));
          console.log(fun);
I tried with a dummy dictionary and it works fine, but when I try to add functions into the dictionary it stops working.
  console.log({ test1: 1, test2: 2, test3: 3 });
          localStorage.setItem("test", JSON.stringify({ test1: 1, test2: 2, test3: 3 }));
          var fun = JSON.parse(localStorage.getItem("test"));
          console.log(fun);
Is this even possible in localStorage or what am I doind wrong?


