Browser game bug

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?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.