Hey everybody. I have a browser game that I am writing in react/typescript, developing with vite environment. I am attempting to have two game modes, high score and full-screen, which is switched with a button (high score mode is windowed).
The bug is that the button will only work after when I save the file on VSCode. Why could this be?