I have this code - In XDK emulator cordova app but after running and populate last100recent array with some objects namely eg {‘id’:899},… (cars ids - used cars app) after close and reopen xdk ripple emulaor these gone … how recover localStorage var…? i DO NOT want like is sessionStorage…
var last100recent = [];
if (localStorage.getItem("last100recent")=="" || localStorage.getItem("last100recent")== null || localStorage.getItem("last100recent") == undefined)
last100recent = [];
else
last100recent = JSON.parse(localStorage.getItem("last100recent"));