@@ -1595,10 +1595,9 @@ var LibraryHTML5 = {
1595
1595
'$specialHTMLTargets'
1596
1596
#endif
1597
1597
] ,
1598
- emscripten_set_pointerlockchange_callback_on_thread__docs : '/ ** @suppress { missingProperties } * / ' , / / Closure does not see document . body . mozRequestPointerLock etc .
1599
1598
emscripten_set_pointerlockchange_callback_on_thread : ( target , userData , useCapture , callbackfunc , targetThread ) = > {
1600
1599
// TODO: Currently not supported in pthreads or in --proxy-to-worker mode. (In pthreads mode, document object is not defined)
1601
- if ( ! document || ! document . body || ( ! document . body . requestPointerLock && ! document . body . mozRequestPointerLock && ! document . body . webkitRequestPointerLock && ! document . body . msRequestPointerLock ) ) {
1600
+ if ( ! document || ! document . body ?. requestPointerLock ) {
1602
1601
return { { { cDefs . EMSCRIPTEN_RESULT_NOT_SUPPORTED } } } ;
1603
1602
}
1604
1603
@@ -1644,10 +1643,9 @@ var LibraryHTML5 = {
1644
1643
'$specialHTMLTargets'
1645
1644
#endif
1646
1645
] ,
1647
- emscripten_set_pointerlockerror_callback_on_thread__docs : '/** @suppress {missingProperties} */' , // Closure does not see document.body.mozRequestPointerLock etc.
1648
1646
emscripten_set_pointerlockerror_callback_on_thread : ( target , userData , useCapture , callbackfunc , targetThread ) => {
1649
1647
// TODO: Currently not supported in pthreads or in --proxy-to-worker mode. (In pthreads mode, document object is not defined)
1650
- if ( ! document || ! document . body . requestPointerLock && ! document . body . mozRequestPointerLock && ! document . body . webkitRequestPointerLock && ! document . body . msRequestPointerLock ) {
1648
+ if ( ! document || ! document . body ? .requestPointerLock ) {
1651
1649
return { { { cDefs . EMSCRIPTEN_RESULT_NOT_SUPPORTED } } } ;
1652
1650
}
1653
1651
@@ -1666,10 +1664,9 @@ var LibraryHTML5 = {
1666
1664
1667
1665
emscripten_get_pointerlock_status__proxy : 'sync ',
1668
1666
emscripten_get_pointerlock_status__deps : [ '$fillPointerlockChangeEventData '] ,
1669
- emscripten_get_pointerlock_status__docs : '/ ** @suppress { missingProperties } * / ', // Closure does not see document.body.mozRequestPointerLock etc.
1670
1667
emscripten_get_pointerlock_status : ( pointerlockStatus ) => {
1671
1668
if ( pointerlockStatus ) fillPointerlockChangeEventData ( pointerlockStatus ) ;
1672
- if ( ! document . body || ( ! document . body . requestPointerLock && ! document . body . mozRequestPointerLock && ! document . body . webkitRequestPointerLock && ! document . body . msRequestPointerLock ) ) {
1669
+ if ( ! document || ! document . body ? .requestPointerLock ) {
1673
1670
return { { { cDefs . EMSCRIPTEN_RESULT_NOT_SUPPORTED } } } ;
1674
1671
}
1675
1672
return { { { cDefs . EMSCRIPTEN_RESULT_SUCCESS } } } ;
0 commit comments