jgoon
jgoon
Explore posts from servers
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
i think you need to config the action in the manifest although
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
in the background script, you can use plasmo's browser api which will dynamically change based which browser you are on
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
example use case:
const path = {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
};

chrome.browserAction.setIcon({ path });
const path = {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
};

chrome.browserAction.setIcon({ path });
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
I don't think plasmo has built an api for this, so simply use the browsers native api chrome.browserAction.setIcon https://developer.chrome.com/docs/extensions/reference/browserAction/
8 replies
PD🧩 Plasmo Developers
Created by Chubby Princess on 10/19/2023 in #👾extension
content.tsx with TailwindCSS affected by page styles
Have you tried using tailwind prefixes? https://tailwindcss.com/docs/configuration#prefix
8 replies
TTCTheo's Typesafe Cult
Created by jgoon on 5/29/2023 in #questions
Server side caching with Next API
Since vercel uses aws lambda for route handling, doesn't this mean that the cache would only exist in the lifetime of the container? So after it the function times out, the cache would be cleared. Also, in the case that the function is run in parallel, the data would have to be recached. I'm realizing now, that I may have to add some state management after all. (correct me if im wrong)
4 replies