diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library_browser.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index 5f9c4d06..0ed04e19 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -201,7 +201,8 @@ mergeInto(LibraryManager.library, { canvas['webkitRequestPointerLock']; canvas.exitPointerLock = document['exitPointerLock'] || document['mozExitPointerLock'] || - document['webkitExitPointerLock']; + document['webkitExitPointerLock'] || + function(){}; // no-op if function does not exist canvas.exitPointerLock = canvas.exitPointerLock.bind(document); function pointerLockChange() { |