Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

No localStorage observer?

29 views
Skip to first unread message

Mike Ratcliffe

unread,
Mar 29, 2012, 12:53:26 PM3/29/12
to
I am creating a panel to allow you to peak at localStorage.

The only way I have found to get the data from localStorage is by reading the contents of webappsstore.sqlite. I can read the DB and store the results in an array without a problem. The thing is that there does not appear to be any way to receive notifications of localStorage changes.

I guess I could poll and compare the db contents with my saved array to find differences but that really is a last resort. Does anybody have any idea what I can do to be notified of changes to localStorage (ideally some kind of DB change observer would be great).

Ultimately I need change notifications from:
cookies (we have them)
localStorage
sessionStorage
appCache
indexedDB
0 new messages