PD
🧩 Plasmo DevelopersAyondip
Help needed In API call from extension
I am building and extension with plasmo I have one csui where I have all my code. I want to sent a request to my server, after finding it I found that messaging can be used for that
my structure look like
|---contents/
| |--App.tsx
|---background/
| |--messages/
| |--ping.ts
I am sending api requests from
ping.ts
and using the below approach
now for this i have to send my extension id but this id will be diffrent if i build and install it in diffrent browser, how to overcome this issue? Please some one help mefilthytone•121d ago
you can use
(globalThis.browser || globalThis.chrome).runtime.id
to get itAyondip•121d ago
Thank you buddy, it solved my problem
YAGPDB.xyz•121d ago
Gave +1 Rep to @filthytone (current:
#5
- 9
)2.1KMembers
View on DiscordWant results from more Discord servers?
More PostsTrouble setting upI've never used this framework before and I've tried `npm create plasmo --with-src`. This appeared ttab pagesReading this:
https://docs.plasmo.com/framework/tab-pages
i can open a react page xyz.html but how cIs there any way I can open the react component in the new tab?I have react based extension and I want to open a component in the new tab. Is that possible ?importing large css file from node_modules is getting truncated (data-text)I'm importing mantine core styles using
`import mantineCssText from "data-text:@mantine/core/stylesNew browser extensionHi i am newbie in plasmo... if I understand correctly, the extension is a classic react application,How can I listen for messages from the extension popup in ALL (there could be many) active contents?I have the following configuration for a UI content-script (although I don't actually need the UI --My extension bugged out severelyHi, so I noticed my extension got bugged out alot out of nowhere, I believe it's because of an updatHow can I set focus on an element?I'm trying, but it simply gives focus to the plasmo-csui, not the specific element I wantI am unable to open popup.I've added src/popup/index.tsx
It's linked inside .plasmo dev build as well. But when I clikc on thI cannot get content script to workI add a content script to the firebase auth example and I spent 5 hours just trying to get plasmo to