[Feature Request] Support for data urls as icons #3494
Unanswered
ramandeep89
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Data urls are pretty common for small inline media formats. Relevant RFC 2397. Currently when providing a data url, it automatically adds a cdn in front, eg:
GET | https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAACwCAMAAAAhfZI...
With just a cursory look, it should be easy to implement by adding a change here, by adding another check for
icon.startsWith("data:image/")
Other
Example of an HTML fragment using the data url from the RFC
Beta Was this translation helpful? Give feedback.
All reactions