What is the correct way use an image url from assets to show notification?

I use this:
import iconUrl from "url:/assets/icon.png"

chrome.notifications.create({
type: "basic",
iconUrl: iconUrl,
title: `Title`,
message: `Message`
})
import iconUrl from "url:/assets/icon.png"

chrome.notifications.create({
type: "basic",
iconUrl: iconUrl,
title: `Title`,
message: `Message`
})
but is possible somethin like this? or there is a better/clean way?
chrome.notifications.create({
type: "basic",
iconUrl: "/assets/icon.png",
title: `Title`,
message: `Message`
})
chrome.notifications.create({
type: "basic",
iconUrl: "/assets/icon.png",
title: `Title`,
message: `Message`
})
Thank you
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server