Handle requestPointerLock error cases in iframes P-199 (#272)

See https://linear.app/theatre/issue/P-199/dont-use-pointer-lock-when-in-an-iframe
This commit is contained in:
Cole Lawrence 2022-08-03 09:55:09 -04:00 committed by GitHub
parent 8bd37a28d6
commit 2ef9d5e346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 3 deletions

View file

@ -0,0 +1,11 @@
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(
<iframe
src="/shared/dom"
style={{width: '600px', height: '600px'}}
sandbox="allow-scripts allow-same-origin"
/>,
document.getElementById('root'),
)