Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Leonidas_S_
New Contributor I
53 Views

after close and reopen xdk ripple emulator 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 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"));

 

Tags (2)
0 Kudos
2 Replies
Leonidas_S_
New Contributor I
53 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?

PaulF_IntelCorp
Employee
53 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.

Reply