Skip to content

Commit

Permalink
backticks don't work as expected
Browse files Browse the repository at this point in the history
no idea why this change fixes things for svg icons, but it does
  • Loading branch information
totaam committed Nov 27, 2023
1 parent 94c0883 commit 931bdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ class XpraClient {
if (icon_type == "svg") {
image_type = "image/svg+xml";
}
img.src = `data:{image_type};base64,${Utilities.ArrayBufferToBase64(icon_data)}`;
img.src = "data:"+image_type+";base64,"+Utilities.ArrayBufferToBase64(icon_data);
}
img.className = "menu-content-left";
img.height = 24;
Expand Down

0 comments on commit 931bdba

Please sign in to comment.