Skip to content

Instantly share code, notes, and snippets.

@MikeeI
Created February 16, 2016 06:20
Show Gist options
  • Save MikeeI/391b784fe321998f4b9a to your computer and use it in GitHub Desktop.
Save MikeeI/391b784fe321998f4b9a to your computer and use it in GitHub Desktop.
Print storage area of chrome.storage API

Print storage area of chrome.storage API

If you want to print out the the storage area of the chrome.storage APIs just type in the following code in the console or better make a Chrome JavaScript snippet and execute it.

// Print out local storage area
chrome.storage.local.get(null, function(all) {
  console.log(all)
});

// Print out sync storage area
chrome.storage.sync.get(null, function(all) {
  console.log(all)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment