Skip to content

Instantly share code, notes, and snippets.

@creesch
Created July 18, 2018 20:15
Show Gist options
  • Save creesch/0ca1344b83a9c353a218e0d3e146c508 to your computer and use it in GitHub Desktop.
Save creesch/0ca1344b83a9c353a218e0d3e146c508 to your computer and use it in GitHub Desktop.
chrome.storage.local.remove('tbsettings', function () {
Object.keys(localStorage)
.forEach(function (key) {
if (/^(Toolbox.)/.test(key)) {
localStorage.removeItem(key);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment