diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index c22e2acee..e9c478bff 100644 --- a/www/common/common-thumbnail.js +++ b/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' });