I have looked at other questions that are similar to mine but most of them are for Manifest version 2. I am using Manifest version 3. Disable / Enable Chrome Extension Via Browser Action / Icon
I want users to be able to click on the extension button in the menu at the top of the chrome page and be able to enable or disable the extension by just clicking that button.
So far I have had no luck making this work because the service workers aren't alive all of the time. I have tried saving a loaded var to local storage that indicates whether the extension was loaded or not but that approach did not work.
What are my options here?