chrome.notification, iconUrl property

Currently in development im using
"web_accessible_resources": [ { "resources": [ "assets/icon.png" ], "matches": ["https://google.com/*"] } ] to make icon.png accesible in build, which i feel like is very wrong, but didnt find any other solution. Is there any safer way to make assets available in build to be able to link image as path to the file without?
1 Reply
lab
lab•2y ago
You can do something like this: import iconUrl from "/assets/icon.png"
Want results from more Discord servers?
Add your server