Browse Source

Fix decodeBase64 error with thumbnails

master
yflory 1 year ago
parent
commit
be85efcb21
1 changed files with 2 additions and 1 deletions
  1. 3
      www/common/common-thumbnail.js

3
www/common/common-thumbnail.js

@ -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