From bfec20ac81696a3614a7f66c74d660fbf198902a Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 2 Feb 2024 10:35:10 +0000 Subject: [PATCH] fix account pic transparency (#5761) Signed-off-by: si458 --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index a84c9780..3504d543 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -12413,7 +12413,7 @@ function account_manageImageEx2(b, userid) { // Send updated image, or 0 if we pressed the delete button - meshserver.send({ action: 'updateUserImage', userid: userid, image: (b == 2)?0:Q('p2canvas').toDataURL('image/jpeg', 0.8) }); + meshserver.send({ action: 'updateUserImage', userid: userid, image: (b == 2)?0:Q('p2canvas').toDataURL(Q('p2file').files[0].type) }); //meshserver.send({ action: 'updateUserImage', image: (b == 2)?0:Q('p2canvas').toDataURL('image/png', 0.8) }); }