Software Archive
Read-only legacy content
17061 Discussions

after close and reopen xdk ripple emulator these gone ... how recover localStorage var...?

Leonidas_S_
New Contributor I
272 Views

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 emulator these gone ... how recover localStorage var...?

is any error in emulator... or any setting keep localstorage....?

var last100recent = [];

if (localStorage.getItem("last100recent")=="" || localStorage.getItem("last100recent")== null || localStorage.getItem("last100recent") == undefined) 
        last100recent = [];
else
        last100recent = JSON.parse(localStorage.getItem("last100recent"));

 

0 Kudos
2 Replies
Leonidas_S_
New Contributor I
272 Views

This must be a bug in xdk - i checked an app that kept localstorage before... now that xdk updated Not keep localstorage ... what to do?

0 Kudos
PaulF_IntelCorp
Employee
272 Views

This is a known issue with the new Simulate tab. See the known issues section of the release notes > https://software.intel.com/en-us/xdk/docs/release-notes-information-intel-xdk < for a workaround.

0 Kudos
Reply