.ls.setItem and .ls.getItem not working on v2.0.10 [V2]

hi @rajkaruna, @nolimits4web,

I’m using app.ls.setItem(‘id’, id); and app.ls.getItem(‘id’); in my project using v2.0.07 it’s working well, but since I upgrade to v2.0.10 there was an error message on chrome dev tool = Uncaught TypeError: Cannot read property ‘setItem’ of undefined. any suggestion?

It was removed in latest version due to security issues. Just use localStorage instead

Hi,

I’ve already updated code above, changing from .ls. to .localStorage. but error message still there Uncaught TypeError: Cannot read property ‘setItem’ of undefined. after I remove app. and direct using localStorage.getItem(‘id’) everything is working :grin: