Skip to content

Commit

Permalink
Fix bug which caused the 2nd initial block not to appear and caused a…
Browse files Browse the repository at this point in the history
… console.error
  • Loading branch information
Maingron committed Sep 12, 2021
1 parent 7febad1 commit 5b08e90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions js/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ if(config.edit == true) { // Only load edit tools if we want to edit
// document.getElementById("designer").style.top = -60 + parseInt(config.clock1[designerApplyTo].position[1]) + "px";
}

setDesigner(config.clock1[config.clock1.length - 1]);

function designer(key, value) {
config.clock1[designerApplyTo][key] = value;

Expand Down
2 changes: 0 additions & 2 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ function addBlock(which, values = {}) {

console.log(config.clock1[config.clock1.length - 1]);
spawnBlock(config.clock1[config.clock1.length - 1]);

setDesigner(config.clock1[config.clock1.length - 1]);
}


Expand Down

0 comments on commit 5b08e90

Please sign in to comment.