Last Updated: February 25, 2016
·
1.095K
· 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));

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside