Last Updated: February 25, 2016
·
858
· RonnyO

Inspect LocalStorage in Chrome Packaged Apps

The new Chrome Packaged Apps are similar to traditional Chrome extensions, but differ in some ways.
One of them is losing the sync localStorage object, in favor of the async-only chrome.storage.local.

This is annoying to work with, and on top of that, it makes the Local Storage feature of the Resources panel useless.

So in order to quickly peek into this kind of storage, use this line:
chrome.storage.local.get(null, console.log.bind(console));