From 1bdec079c5d18f51acfa637d35fe7dcfe0d3f200 Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:43:37 +0800 Subject: [PATCH] Update javascript.js --- SpBlocklyJS/GameElements_20190131/javascript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpBlocklyJS/GameElements_20190131/javascript.js b/SpBlocklyJS/GameElements_20190131/javascript.js index e5a7526517..38ebd00ea7 100644 --- a/SpBlocklyJS/GameElements_20190131/javascript.js +++ b/SpBlocklyJS/GameElements_20190131/javascript.js @@ -2486,8 +2486,8 @@ Blockly.JavaScript['audio_play_googleTTS'] = function (block) { var value_id_ = Blockly.JavaScript.valueToCode(block, 'id_', Blockly.JavaScript.ORDER_ATOMIC); var value_language_ = block.getFieldValue('language_'); var value_text_ = Blockly.JavaScript.valueToCode(block, 'text_', Blockly.JavaScript.ORDER_ATOMIC); - var code = 'await audio_play_googleTTS_Base64Data(' + value_id_ + ',"' + value_language_ + '",' + value_text_ + ');\n'; - return code; + var code = 'await audio_play_googleTTS_Base64Data(' + value_id_ + ',"' + value_language_ + '",' + value_text_ + ')'; + return [code, Blockly.JavaScript.ORDER_NONE]; }; Blockly.JavaScript['audio_delete'] = function (block) {