Fix decodeBase64 error with thumbnails

pull/1/head
yflory 5 years ago
parent 489bec6285
commit be85efcb21

@ -261,7 +261,8 @@ define([
var addThumbnail = function (err, thumb, $span, cb) {
var u8 = Nacl.util.decodeBase64(thumb.split(',')[1]);
var split = thumb.split(',');
var u8 = Nacl.util.decodeBase64(split[1] || split[0]);
var blob = new Blob([u8], {
type: 'image/png'
});

Loading…
Cancel
Save