mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-13 22:44:04 -04:00
Ignore display command with blank string (#1355)
This commit is contained in:
parent
c4ee7065a2
commit
2af04c43ea
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ class Scratch3MicroBitBlocks {
|
||||||
*/
|
*/
|
||||||
displayText (args) {
|
displayText (args) {
|
||||||
const text = String(args.TEXT).substring(0, 19);
|
const text = String(args.TEXT).substring(0, 19);
|
||||||
this._device.displayText(text);
|
if (text.length > 0) this._device.displayText(text);
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue