Strip lego- prefix from files on the brick

This commit is contained in:
Michal Moskal 2017-07-27 21:10:52 +01:00
parent de0b5f0d86
commit 227f9614b0

View File

@ -41,7 +41,8 @@ namespace pxt.editor {
export function deployCoreAsync(resp: pxtc.CompileResult, isCli = false) {
let w: Ev3Wrapper
let filename = resp.downloadFileBaseName
let filename = resp.downloadFileBaseName || "pxt"
filename = filename.replace(/^lego-/, "")
let fspath = "../prjs/BrkProg_SAVE/"