Browse Source

removed resize listener - not needed

main
alex swanson 12 months ago
parent
commit
4279810cfe
  1. 7
      game.js

7
game.js

@ -42,10 +42,3 @@ btnReset.addEventListener('click', (e) => {
}
textarea.value = ''
});
document.getElementById('test-target').onResize = () =>
window.addEventListener('resize', (e) => {
const gameWidth = document.getElementById('test-target').getBoundingClientRect().width
console.log(gameWidth)
})
Loading…
Cancel
Save