Reputation: 1411
I got all keys from Chrome Storage by passing null as object.
For example,
chrome.storage.local.get(null, callbackFunction); //list of Object property
Is there any way similarly to get all property:propertyValues pairs from Chrome Storage?
Upvotes: 8
Views: 3990
Reputation: 1411
chrome.storage.local.get(null, function(items) {
for (key in items) {
//do stuffs here
}
});
I achieved through for loop
Upvotes: 8