-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
HelioWebXRPolyfill: Fix illegal return statement error. #17838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) { | ||
|
|
||
| if ( 'isSessionSupported' in navigator.xr ) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please ensure to only use hard tabs in this file? It seems hard and soft tabs are mixed now which ruins proper formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please. Check the files changed section to make sure your pr is clean:
https://github.com/mrdoob/three.js/pull/17838/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Converts indentations to tabs and remove trailing spaces.
4d65a23 to
4e93cd3
Compare
|
How about this: if ( /(Helio)/g.test( navigator.userAgent ) && 'xr' in navigator && 'isSessionSupported' in navigator.xr === false ) { |
4e93cd3 to
44efa88
Compare
44efa88 to
36429a0
Compare
Done |
|
Thanks! |
|
@yhuangbrowser When do you think we'll be able to remove this file? |
Thanks for merging the pr. I don't have a certain timeline now but my estimation is at least 3~4 months after our next software updates. |
Fixed #17837