After close and reopen xdk ripple emulaor these gone ... how recover localStorage var

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"));

there must be error in the IDE XDK
posted and here:
https://software.intel.com/en-us/forums/intel-xdk/topic/685038#comment-1884052

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.