- From: ghazale-hosseinabadi <notifications@github.com>
- Date: Wed, 23 Jun 2021 08:15:11 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 June 2021 15:16:04 UTC
@asutherland yes, please refer to https://developer.chrome.com/docs/extensions/mv3/content_scripts/: They can also access the URL of an extension's file with chrome.runtime.getURL() and use the result the same as other URLs. // Code for displaying <extensionDir>/images/myimage.png: var imgURL = chrome.runtime.getURL("images/myimage.png"); document.getElementById("someImage").src = imgURL; -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1595#issuecomment-866926413
Received on Wednesday, 23 June 2021 15:16:04 UTC