when I close the tab and then open a new one ,all the storage is removed.I am using
var postsId = []
chrome.storage.local.set({
'posts': postsId
});
and later I do :
chrome.storage.local.get({
posts: []
}, function(result) {
}
is there any other option to save the data without losing it ?
Thank you