17 Replies
from the background script:
or if only one size icon
Thank you for your help! Unfortunately, I'm having issues getting the right path. Here is what my workspace looks like:
I have tried the following examples, but all ceased to work with an error similar to the one I attached:
Gave +1 Rep to @𝕯èส𝓿ḯส𝕝 (current:
#25
- 1
)@𝕯èส𝓿ḯส𝕝 has reached level 2. GG!
That didn't work either
@Isra has reached level 1. GG!
it would be just the directory in the extension and the file. the same way it would look in the manifest
That wouldn't work because it's not using the compiled url
Btw, I was following this example https://github.com/PlasmoHQ/plasmo/issues/57
this is what mine looks like:
my
crx
is a universal definition of const crx = browser?.action ? browser : chrome;
i include a tabId because I am only changing the icon for that tab
my images didn't need to be put in the manifest because they are not being "downloaded" by a webpage. they are only overriding the icon declaration in the manifest
I am only setting this from the background scriptyou can't use a compiled url. the image must be a file path string not a url
Either way I do it it's giving me this error
I've tried your example
in your
build/<browser>
directory, what path is the file showing inWeird, it doesn't show up at all
When I include an import like this it shows up though.