I am creating browser extension, which react on user clicks. When user click, it generates xpath, value, hostname etc. Until user doesn't click final "send to server's DB" I want store this data locally. I want structure like that:
action1:
xpath: myVal1
value: myVal2
hostname: myVal3
action2:
xpath: myVal4
value: myVal5
hostname: myVal6
action3:
xpath: myVal7
value: myVal8
hostname: myVal9
I think the best actual way to do this is localStorage, but I don't know how to make something like that:
action1.xpath = 'myNewPath'
action2.value = 'myOtherValue'
Any suggestions ?