Merge pull request #229 from sensebox/dev/newNavbarFeatures

add new navbar
This commit is contained in:
Mario Pesch
2023-02-06 14:53:13 +01:00
committed by GitHub
3 changed files with 275 additions and 54 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class BlocklyWindow extends Component {
componentDidUpdate(props) {
const workspace = Blockly.getMainWorkspace();
var xml = this.props.initialXml;
var xml = localStorage.getItem("autoSaveXML");
if (props.selectedBoard !== this.props.selectedBoard) {
// change board
if(!xml) xml = initialXml;