From c1ba08cfc621b318e430e04ba2c349628bae8a31 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 7 Nov 2017 15:04:45 +0100 Subject: [PATCH] Make sure thumbnails are .png --- www/common/common-thumbnail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index 6ec60d063..6c561e52a 100644 --- a/www/common/common-thumbnail.js +++ b/www/common/common-thumbnail.js @@ -232,7 +232,7 @@ define([ var addThumbnail = function (err, thumb, $span, cb) { var img = new Image(); - img.src = thumb.slice(0,5) === 'data:' ? thumb : 'data:;base64,'+thumb; + img.src = thumb.slice(0,5) === 'data:' ? thumb : 'data:image/png;base64,'+thumb; $span.find('.cp-icon').hide(); $span.prepend(img); cb($(img));