Skip to content Skip to sidebar Skip to footer

Show Everything In Chrome.storage

I tried to use console.log(chrome.storage) but it doesn't return anything helpful. I have already set some values in my extensions using chrome.storage.sync.set and want to see the

Solution 1:

You have to wait for the completion of chrome.storage.sync.set() action. One of the ways to do it is the callback function. The value you pass with chrome.storage.sync.set() is available within callback:

chrome.storage.sync.set({'key1': 123}, function() {
  chrome.storage.sync.get("key1", function(data) {
    console.log("data", data);
  });
});

Post a Comment for "Show Everything In Chrome.storage"