fix account pic transparency (#5761)

Signed-off-by: si458 <simonsmith5521@gmail.com>

Simon Smith committed Feb 2, 2024 at 10:35 UTC bfec20ac81696a3614a7f66c74d660fbf198902a
1 file changed +1 -1
views/default.handlebars
+1 -1
@@ -12413,7 +12413,7 @@
12413
12414 function account_manageImageEx2(b, userid) {
12415 // Send updated image, or 0 if we pressed the delete button
12416 - meshserver.send({ action: 'updateUserImage', userid: userid, image: (b == 2)?0:Q('p2canvas').toDataURL('image/jpeg', 0.8) });
12416 + meshserver.send({ action: 'updateUserImage', userid: userid, image: (b == 2)?0:Q('p2canvas').toDataURL(Q('p2file').files[0].type) });
12417 //meshserver.send({ action: 'updateUserImage', image: (b == 2)?0:Q('p2canvas').toDataURL('image/png', 0.8) });
12418 }
12419