Use decodebase64 (#295)

* avoid atob directly

* prevent port names to be selected

* updated pxt
This commit is contained in:
Peli de Halleux
2018-01-31 18:10:15 -08:00
committed by GitHub
parent 08f79c5a1a
commit 2c0cc6a3d7
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export function deployCoreAsync(resp: pxtc.CompileResult, isCli = false) {
let rbfBIN = pxt.U.fromHex(rbfHex)
pxt.HF2.write16(rbfBIN, 4, rbfBIN.length)
let origElfUF2 = UF2.parseFile(pxt.U.stringToUint8Array(atob(resp.outfiles[pxt.outputName()])))
let origElfUF2 = UF2.parseFile(pxt.U.stringToUint8Array(ts.pxtc.decodeBase64(resp.outfiles[pxt.outputName()])))
let mkFile = (ext: string, data: Uint8Array = null) => {
let f = UF2.newBlockFile()