File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ <h1>MicroPython-micro:bit simulator example embedding</h1>
92
92
< option value ="pin_logo "> Pin logo</ option >
93
93
< option value ="radio "> Radio</ option >
94
94
< option value ="sensors "> Sensors</ option >
95
- < option value ="sound_effects_builtin "> Sound effects (builtin)</ option >
95
+ < option value ="sound_effects_builtin ">
96
+ Sound effects (builtin)
97
+ </ option >
96
98
< option value ="sound_effects_user "> Sound effects (user)</ option >
97
99
< option value ="speech "> Speech</ option >
98
100
< option value ="volume "> Volume</ option >
@@ -319,9 +321,10 @@ <h1>MicroPython-micro:bit simulator example embedding</h1>
319
321
const labelElt = document . createElement ( "label" ) ;
320
322
const text = labelElt . appendChild ( document . createElement ( "span" ) ) ;
321
323
text . innerText = info . type ;
322
- delete info . type ;
323
324
const infoText = labelElt . appendChild ( document . createElement ( "code" ) ) ;
324
- infoText . innerText = JSON . stringify ( info ) ;
325
+ const infoMutable = { ...info } ;
326
+ delete infoMutable . type ;
327
+ infoText . innerText = JSON . stringify ( infoMutable ) ;
325
328
return labelElt ;
326
329
} ;
327
330
You can’t perform that action at this time.
0 commit comments