diff --git a/www/common/media-tag.js b/www/common/media-tag.js index a99a74f8f..133e64805 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -82,7 +82,11 @@ var factory = function () { plainText.innerText = e.srcElement.result; cb(void 0, plainText); }); - reader.readAsText(content); + try { + reader.readAsText(content); + } catch (err) { + cb(err); + } }, image: function (metadata, url, content, cfg, cb) { var img = document.createElement('img');