guard against typeError when importing sheets

pull/1/head
ansuz 3 years ago
parent eb3cdf2f78
commit a9e9ee6c7a

@ -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');

Loading…
Cancel
Save