Skip to content

Commit

Permalink
more reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Sep 8, 2023
1 parent 3b4e217 commit 00c7ffa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ namespace microcode {
if (!this.progdef) {
// onboarding experience
// load first sample if this is the first program being loaded
this.app.saveSource(SAVESLOT_AUTO, samples(true)[1].source)
// TODO
// this.app.saveSource(SAVESLOT_AUTO, samples(true)[1].source)
this.progdef = this.app.load(SAVESLOT_AUTO)
}

Expand Down
5 changes: 3 additions & 2 deletions home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace microcode {
let s = settings.readString(iconId)
if (!s) {
// handles case where nothing is in slot
const b64 = rawSamples()[0].b64
const b64 = "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7IlIiOlt7fV19LHt9XX19"
s = Buffer.fromBase64(b64).toString()
}
settings.writeString(SAVESLOT_AUTO, s)
Expand All @@ -87,7 +87,8 @@ namespace microcode {
/* override */ activate() {
super.activate()
this.color = 15
docs.setup(this.app)
//TODO
//docs.setup(this.app)
}

private drawVersion() {
Expand Down
3 changes: 0 additions & 3 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
"navigator.ts",
"cursorscene.ts",
"options.ts",
"samples.ts",
"docs.ts",
"gallery.ts",
"pointerevents.ts",
"tooltips.ts"
],
Expand Down

0 comments on commit 00c7ffa

Please sign in to comment.