From a5b3f1cdbba29164ae79571f6a736d8eee5306ed Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Fri, 29 Sep 2023 18:06:35 +0800 Subject: [PATCH] Add files via upload --- SpBlocklyJS/index.html | 1 - SpBlocklyJS/js/index.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SpBlocklyJS/index.html b/SpBlocklyJS/index.html index cbf2b9fca3..ce99eb9132 100644 --- a/SpBlocklyJS/index.html +++ b/SpBlocklyJS/index.html @@ -14,7 +14,6 @@ SpBlocklyJS - diff --git a/SpBlocklyJS/js/index.js b/SpBlocklyJS/js/index.js index 7fc08c097a..3c809c6a50 100644 --- a/SpBlocklyJS/js/index.js +++ b/SpBlocklyJS/js/index.js @@ -18,7 +18,8 @@ document.addEventListener('DOMContentLoaded', function() { function getScript() { var script = ""; - + script += ""; + var xml = Blockly.Xml.workspaceToDom(Blockly.getMainWorkspace(), true); xml = Blockly.Xml.domToPrettyText(xml); @@ -188,6 +189,7 @@ document.addEventListener('DOMContentLoaded', function() { function getScriptRemote() { var script = ""; + script += ""; var xml = Blockly.Xml.workspaceToDom(Blockly.getMainWorkspace(), true); xml = Blockly.Xml.domToPrettyText(xml);