Closed AnweshGangula closed 2 years ago
Hi I'm trying to set the user preferences and saved them in storage. I would like to use storage.sync instead of storage.local.
storage.sync
storage.local
But when I use browser.storage.sync.get, I get below error
browser.storage.sync.get
Cannot read properties of undefined (reading 'sync')
How to solve this?
Not related to the plugin, but you'd need to declare the storage permission in your manifest to have access to the storage API.
storage
Hi I'm trying to set the user preferences and saved them in storage. I would like to use
storage.sync
instead ofstorage.local
.But when I use
browser.storage.sync.get
, I get below errorHow to solve this?