Commit dfe691d3 authored by Klaus Weidner's avatar Klaus Weidner Committed by Commit Bot

Fix phone-ar test in webxr-samples

This change is needed to match the API change in
https://chromium-review.googlesource.com/c/chromium/src/+/1570217
but was missing in that CL.

TBR=bajones@chromium.org

Change-Id: Ic49436558c3cde7e42b9b8a4bd26c416f0b80f2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574457
Commit-Queue: Klaus Weidner <klausw@chromium.org>
Reviewed-by: default avatarKlaus Weidner <klausw@chromium.org>
Auto-Submit: Klaus Weidner <klausw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652689}
parent 39500d22
...@@ -116,11 +116,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ...@@ -116,11 +116,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// activation event so that appropriate permissions can be granted. // activation event so that appropriate permissions can be granted.
// This will likely prompt the user to allow camera use, so the promise // This will likely prompt the user to allow camera use, so the promise
// may remain outstanding for a while. // may remain outstanding for a while.
navigator.xr.requestSession({ mode: 'immersive-ar' }).then((session) => { navigator.xr.requestSession('immersive-ar').then((session) => {
xrButton.setSession(session); xrButton.setSession(session);
onSessionStarted(session); onSessionStarted(session);
}).catch(() => { }).catch(() => {
navigator.xr.requestSession({ mode: 'legacy-inline-ar'}) navigator.xr.requestSession('legacy-inline-ar')
.then((session) => { .then((session) => {
xrButton.setSession(session); xrButton.setSession(session);
onSessionStarted(session); onSessionStarted(session);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment