]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/Parser.js
bump version to 3.4-7
[proxmox-widget-toolkit.git] / src / Parser.js
index 779195fdb4a5a33b2111faf18e2d3b02bd81afb8..c70e759e5a083a3482c081da4023221bedd6a972 100644 (file)
@@ -32,7 +32,7 @@ Ext.define('Proxmox.Markdown', {
                } else if ((name === 'href' || name === 'src') && !_isHTTPLike(value)) {
                    try {
                        let url = new URL(value, window.location.origin);
-                       if (_isHTTPLike(url.protocol)) {
+                       if (_isHTTPLike(url.protocol) || (node.tagName === 'img' && url.protocol === 'data:')) {
                            node.attributes[i].value = url.href;
                        } else {
                            node.attributes.removeNamedItem(name);