dnwjn
dnwjn
PD🧩 Plasmo Developers
Created by dnwjn on 6/2/2023 in #🔰newbie
Pass data from Content Script to Popup
So to summarize: - Popup: listens to storage changes and changes display based on those values - Content scripts: execute functionality that relies on the website - Messages: receive requests from content scripts, execute functions and update storage accordingly
10 replies
PD🧩 Plasmo Developers
Created by dnwjn on 6/2/2023 in #🔰newbie
Pass data from Content Script to Popup
Thanks for all your input, I've figured it out. I'm now using a combination of the popup, content scripts, messages and storage, and now everything works as it should!
10 replies
PD🧩 Plasmo Developers
Created by dnwjn on 6/2/2023 in #🔰newbie
Pass data from Content Script to Popup
I have now also tried using a combination of messages and ports, but unfortunately to no avail...
10 replies
PD🧩 Plasmo Developers
Created by dnwjn on 6/2/2023 in #🔰newbie
Pass data from Content Script to Popup
You mean here? https://github.com/PlasmoHQ/examples/blob/main/with-messaging/popup.tsx Because I only see calls to the background script and content script. Yes those return data, but I'm looking for the data flow from content script to popup without the popup initiating it.
10 replies
PD🧩 Plasmo Developers
Created by dnwjn on 6/2/2023 in #🔰newbie
Pass data from Content Script to Popup
That's weird, I'm sure I tried all of that. I'll try again and post my results!
10 replies