Hi, I wrote this JS to nagivate to a page if a local storage value is equal to '1'... Is there something wrong with the way i wrote it bc its not working?:
// if local storage variable 'test_cart1' value is equal to '1' then nagivate to 'Main' page
if(localStorage('test_cart1') == 1 )
Appery.navigateTo('Main', {
transition: 'flip',
reverse: false
});
I also did verify the value of '1' does exist in that local storage variable 'test_cart1'