guard against typeError when importing sheets

pull/1/head
ansuz 3 years ago committed by ansuz
parent fab629bf6d
commit 5afb3f7893

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