Skip to content

Commit

Permalink
Fixed resize for canvas background
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyengiabach1201 committed Jun 26, 2024
1 parent 7da752e commit d98b060
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ function setCanvasSize() {
}
setCanvasSize();

window.onresize = setCanvasSize;

const dots = [];
document.onmousemove = (event) => {
function getRandomColor() {
Expand Down

0 comments on commit d98b060

Please sign in to comment.