So I used local storage to remember the window width/heigtht, so that when i access the game again it remember the choosen screen size, and it works fine.
The problem is, every time i run the game again, the window is not centered on the screen, but ismoved to the right side. I tried using the NW.js X/Y action (scrollx/y) but didnt work. Maximizing and unmaximizing didn't work either, is there a way to move it to the center of my monitor?
Thanks!