mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05: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) {
|
||||
const text = String(args.TEXT).substring(0, 19);
|
||||
this._device.displayText(text);
|
||||
if (text.length > 0) this._device.displayText(text);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue