From b37222e8b68147e1e76f26eaa32d4d055685e9c3 Mon Sep 17 00:00:00 2001 From: samirah Date: Fri, 6 Jul 2018 11:38:52 -0700 Subject: [PATCH] In the vr samples, handle rejection of getVRDisplays for the case when the API is available but WebVR is not supported --- examples/js/vr/WebVR.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/js/vr/WebVR.js b/examples/js/vr/WebVR.js index e1a7dcf6a5..9a49ab0e39 100644 --- a/examples/js/vr/WebVR.js +++ b/examples/js/vr/WebVR.js @@ -191,7 +191,7 @@ var WEBVR = { } - } ); + } ).catch( showVRNotFound ); return button; -- GitLab