Ustaw tablicę obiektów w LocalStorage
//set item in local storage
localStorage.setItem("savedData", JSON.stringify(objects));
//retrieve item from local storage
objects = JSON.parse(localStorage.getItem("savedData")));
Adventurous Alligator