Catch errors from initAsync

This commit is contained in:
Michal Moskal 2017-08-07 11:12:52 +02:00
parent 29009aa5e5
commit 2dec405a9b

View File

@ -121,13 +121,9 @@ namespace pxt.editor {
const res: pxt.editor.ExtensionResult = {
deployCoreAsync,
};
initAsync()
/*
.then(w => w.streamFileAsync("/tmp/serial.txt", buf => {
let str = Util.fromUTF8(Util.uint8ArrayToString(buf))
}))
*/
initAsync().catch(e => {
// probably no HID - we'll try this again upon deployment
})
return Promise.resolve<pxt.editor.ExtensionResult>(res);
}
}