In previous MV2 it was enough to declare a variable in the body of the script like this let my_variable;
and then use it in any function inside (read/write some data). But in MV3 this does not work. Are there any alternatives for storing data and reading it in functions? (a data is not exactly text, rather objects). Thanks in advance to any ideas!
Asked
Active
Viewed 151 times
0

VickyPopovic
- 41
- 6
-
1It works in service worker, so apparently you're doing something unusual or the description is incomplete. Please show [MCVE](/help/mcve). See also [Persistent Service Worker in Chrome Extension](https://stackoverflow.com/a/66618269) – wOxxOm Nov 01 '22 at 22:03