is it possible to store array in chrome storage sync and retrieve them ?
var uarray = [abc,def,ghi];
Is it possible to update the stored array in the storage ?
var tobeadded = jkl;
uarray.push(tobeadded);
this was the syntax in documentation
chrome.storage.sync.set({'value': theValue}, function() {
// Notify that we saved.
message('Settings saved');
});
My bookmark extension, need to store the id of bookmark and retrieve them for internal search and stuffs based on it. bookmarking needs update of ID in storage sync periodically.
Thanks!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…