Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialLegacy committed Apr 28, 2024
1 parent 268a75b commit 493dd7d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/modules/canvas/components/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function Canvas(props: CanvasProps<any>) {
const canvas = useRef<HTMLCanvasElement>(null)

useEffect(() => {
console.log(canvas.current)
if (canvas.current == null) return
const can = canvas.current
const ctx = can.getContext('2d')
Expand All @@ -33,7 +32,6 @@ function Canvas(props: CanvasProps<any>) {
props.render(ctx, state)
windowSize = size
}

window.addEventListener('resize', resize)

props.init(windowSize, state)
Expand Down

0 comments on commit 493dd7d

Please sign in to comment.