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));
Written by Ronny Orbach
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Chrome
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#