Open sublimator opened 9 months ago
such annoyance, very annoyed
Please provie a reproduction. What path are you using?
So long ago I can't even remember now Probably found a workaround Next time I have some time and on laptop will dig this up
Thx
On Sat, 18 May 2024, 7:22 pm Tomasz Dłuski, @.***> wrote:
Please provie a reproduction. What path are you using?
— Reply to this email directly, view it on GitHub https://github.com/crxjs/chrome-extension-tools/issues/832#issuecomment-2118806734, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAHG6BLUZDS4XKS476HELZC5BW5AVCNFSM6AAAAAA7NWYHV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHAYDMNZTGQ . You are receiving this because you authored the thread.Message ID: @.***>
I have the same issue.
Repo steps:
1.png
import icon from "./assets/1.png"
chrome.action.setIcon({ path: icon });
This does not work.
When you run a build everything works as expected.
@ohawkins2 it was working here.
The image tutorial says to use getURL
exact code
import logoPath from './logo.png'
const logo = document.createElement('img')
logo.src = chrome.runtime.getURL(logo)
Build tool
Vite
Where do you see the problem?
Describe the bug
Need to detect that using the dev server and tack on the full http url of the dev server to the front of the icon path, otherwise "failure to fetch" when using chrome.action.setIcon
Reproduction
Curses
Logs
No response
System Info
Severity
annoyance