Skip to content Skip to sidebar Skip to footer

Localforage Setitem/getitem Unreliable In Firefox / Firestorage Plus

I am loading a local instance of localForage and using it with Promise chains to save basic data. A simple example: localforage.getItem('sellerExtension').then(function(sellerExten

Solution 1:

Could the problem be that it's localStorage and not localForage as you have in your code?

Did you notice that in your screen shot, the Firebug tab says localStorage on it?

Solution 2:

Extensions like Firestorage Plus! and simplesession are NOT reliable when looking for data being set with localForage!!! The key (pun intended) is to use the Firefox built-in Inspector.

I could NOT find this in my FF after adding extensions, but I had the FF Dev Edition, ran that, enabled the Storage tool in config options, and bam, there they ALL were!! Hope this helps someone else out.

I "believe" that if you set data on a different page/file, those extensions wont see these values, only the orginial file/page's getItem data.

enter image description here

Post a Comment for "Localforage Setitem/getitem Unreliable In Firefox / Firestorage Plus"