aboutsummaryrefslogtreecommitdiff
path: root/src/screen.ts
blob: 0567ad9581d4aa35d8205243f9e2cdc01bfd4302 (plain)
1
2
3
4
5
6
7
8
9
export let size = {
  x: window.innerWidth,
  y: window.innerHeight
}

window.onresize = () => {
  size.x = window.innerWidth
  size.y = window.innerHeight
}