Charles de Dreuille
Explore posts from serversPD🧩 Plasmo Developers
•Created by Charles de Dreuille on 8/17/2023 in #🔰newbie
Create confirmation as CS after clicking on context menu
I created a context menu that save an image after clicking on the menu item. I would like to create a nice confirmation as CS.
What would be the best way to send a message from the BGSW to CS?
Here the code I have in BGSW in
background/index.ts
:
And just to confirm, I would like a message to send some data from the context menu listener to CS as well as a message so I can open the confirmation modal.
Should I use Porta for that? And how to send data from my contextMenu listener to CS?2 replies
PD🧩 Plasmo Developers
•Created by Charles de Dreuille on 2/3/2023 in #👾extension
🔴 ERROR | import() is not allowed in service workers.
I'm trying to import Supabase in a service worker to push save some images but I got this error in the console and I have no idea what I'm doing wrong. Any idea?
Here is my
background.tsx
code:
13 replies