Syam Pillai:
UI.getCurrent().getPage().executeJS("window.close();");
It should work when you are in Production mode.
No, that didn’t work. I let the program print something out when the command ran…
the windows wasn’t closed like this. I saw the output “Vaadin is running in production mode.”.
Maybe I should provide pieces of my version information?
- Vaadin 14.3.0
- Spring Boot 2.2.0-RELEASE
- openJDK (Coretto) 11