You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set some storage data in the OptionsIndex component, but I am unable to retrieve this data in the contents script that runs with world: "MAIN". I need assistance to achieve this.
Problem Details:
In the OptionsIndex component, I use the Storage class to set some key-value pairs. However, when I attempt to retrieve this storage data in the contents script, I am unable to get the stored values.
Steps to Reproduce:
Load the OptionsIndex component in the application.
Attempt to retrieve the storage data in the contents script.
Expected Behavior:
The storage data set in the OptionsIndex component should be successfully retrieved in the contents script.
Actual Behavior:
The storage data is not being retrieved in the contents script.
It's not a bug. It's how Chrome works. When you're using MAIN world, the Javascript thread that the webpage uses, you do NOT have access to ANY chrome.runtime.* methods. You must either use ISOLATED world (the default) or use Messaging API.
What happened?
Description:
I have set some storage data in the
OptionsIndex
component, but I am unable to retrieve this data in thecontents
script that runs withworld: "MAIN"
. I need assistance to achieve this.Problem Details:
In the
OptionsIndex
component, I use theStorage
class to set some key-value pairs. However, when I attempt to retrieve this storage data in thecontents
script, I am unable to get the stored values.Steps to Reproduce:
OptionsIndex
component in the application.contents
script.Expected Behavior:
The storage data set in the
OptionsIndex
component should be successfully retrieved in thecontents
script.Actual Behavior:
The storage data is not being retrieved in the
contents
script.Code Snippets:
OptionsIndex Component:
contents Script:
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: