Jack M
Jack M

Reputation: 5995

browser.storage.local.set doesn't seem to have any effect

I'm developing a Firefox extension. It's loaded temporarily (via about:debugging) and I'm trying to use the local storage API. The following screenshots are of the extension's debug console.

First I set a value:

enter image description here

But it doesn't seem to be there:

enter image description here

I do have the "storage" permission in my manifest and my extension has an ID.

Upvotes: 1

Views: 1898

Answers (1)

kingdaro
kingdaro

Reputation: 12018

The localStorage in the browser is not the same as the storage.local for an extension. Instead, try getting the value once it's set and log it from there.

Upvotes: 3

Related Questions