Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Add check to only exit pointer lock if the method exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Belchy06 committed Oct 10, 2022
1 parent b0b7eb6 commit c897e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SignallingWebServer/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ function showAfkOverlay() {
afk.countdown = afk.closeTimeout;
updateAfkOverlayText();

if (inputOptions.controlScheme == ControlSchemeType.LockedMouse) {
if (inputOptions.controlScheme == ControlSchemeType.LockedMouse && document.exitPointerLock) {
document.exitPointerLock();
}

Expand Down

0 comments on commit c897e1b

Please sign in to comment.