Skip to content

Commit

Permalink
fix: relax check
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Sep 15, 2022
1 parent bfea437 commit 2d12cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiber/src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ const createStore = (
updateCamera(camera, size)
gl.setPixelRatio(viewport.dpr)
// Play nice with offscreen canvas contexts
const updateStyle = typeof window !== 'undefined' && gl.domElement instanceof HTMLCanvasElement
const updateStyle = gl.domElement instanceof HTMLCanvasElement
gl.setSize(size.width, size.height, updateStyle)
}

Expand Down

0 comments on commit 2d12cee

Please sign in to comment.