We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Firstly thank you very much for the excellent work! Is there anyway I can import images into my content script? I have tried it like this:
content
import logo from '../../../assets/img/icon-128.png';
But it doesn't work. Any help is greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Did some soul searching and came up with this.
import icon from '../../../assets/test.jpg'; const container = document.createElement("div") container.className = "charlie"; container.style.backgroundImage = `url('${chrome.runtime.getURL(icon)}')`;
But running into the issue with web_accessible_resources
Sorry, something went wrong.
Fixed the web_accessible_resource issue by updating the manifest.json file. GoogleChrome/developer.chrome.com#544 (comment)
No branches or pull requests
Hello,
Firstly thank you very much for the excellent work! Is there anyway I can import images into my
content
script? I have tried it like this:import logo from '../../../assets/img/icon-128.png';
But it doesn't work. Any help is greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: