From 931bdbae00d52e94fea444acdd3f120562f47895 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 27 Nov 2023 23:47:26 +0700 Subject: [PATCH] backticks don't work as expected no idea why this change fixes things for svg icons, but it does --- html5/js/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5/js/Client.js b/html5/js/Client.js index eb61ab72..ecc7674e 100644 --- a/html5/js/Client.js +++ b/html5/js/Client.js @@ -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;