Lucas
Lucas
PD🧩 Plasmo Developers
Created by isibbot on 5/8/2024 in #🔰newbie
How to share service worker API response to many content scripts
I'm new to extension development / plasmo framework, but I recently made some good progress with using chrome.storage.local (Plasmo has their own Storage API abstraction) to hold state required by all extension contexts. Could you have your background script get/set the HTML string in chrome.storage.local and have your content scripts Card.tsx and Title.tsx listen for changes to the value of targetHTML (for example)?
7 replies