https://developer.mozilla.org/en-US/docs/Web/API/Window/vrdisplayconnect_event
Window: vrdisplayconnect event - Web APIs | MDN
The vrdisplayconnect event of the WebVR API is fired when a compatible VR display is connected to the computer.
event webwindowapismdn