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; plainText.innerText = e.srcElement.result;
cb(void 0, plainText); cb(void 0, plainText);
}); });
try {
reader.readAsText(content); reader.readAsText(content);
} catch (err) {
cb(err);
}
}, },
image: function (metadata, url, content, cfg, cb) { image: function (metadata, url, content, cfg, cb) {
var img = document.createElement('img'); var img = document.createElement('img');

Loading…
Cancel
Save