We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d1eac commit 0e79db7Copy full SHA for 0e79db7
proposals/immersive-ar-session.html
@@ -56,6 +56,14 @@
56
import {SkyboxNode} from '../js/render/nodes/skybox.js';
57
import {InlineViewerHelper} from '../js/util/inline-viewer-helper.js';
58
import {Gltf2Node} from '../js/render/nodes/gltf2.js';
59
+ import {QueryArgs} from '../js/util/query-args.js';
60
+
61
+ // If requested, use the polyfill to provide support for mobile devices
62
+ // and devices which only support WebVR.
63
+ import WebXRPolyfill from '../js/third-party/webxr-polyfill/build/webxr-polyfill.module.js';
64
+ if (QueryArgs.getBool('usePolyfill', true)) {
65
+ let polyfill = new WebXRPolyfill();
66
+ }
67
68
// XR globals.
69
let xrButton = null;
0 commit comments