Skip to content

Commit

Permalink
Merge pull request #17 from brauliorivas/refactor-init
Browse files Browse the repository at this point in the history
Execute drawAll function only once
  • Loading branch information
kjvbrt authored May 13, 2024
2 parents 9c021a8 + a364186 commit e786c89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,6 @@ document
}
start();
hideInputModal();
setTimeout(() => {
drawAll();
toggle.init(infoBoxes, drawAll);
}, 500);
window.scroll((canvas.width - window.innerWidth) / 2, 0);
toggle.init(infoBoxes, drawAll);
});

0 comments on commit e786c89

Please sign in to comment.