File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/model-viewer/src/features Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ configuration or device capabilities');
276
276
locationUrl . hash = noArViewerSigil ;
277
277
278
278
// modelUrl can contain title/link/sound etc.
279
- params . set ( 'file' , modelUrl . toString ( ) ) ;
280
279
params . set ( 'mode' , 'ar_only' ) ;
281
280
if ( ! params . has ( 'disable_occlusion' ) ) {
282
281
params . set ( 'disable_occlusion' , 'true' ) ;
@@ -298,7 +297,7 @@ configuration or device capabilities');
298
297
299
298
const intent = `intent://arvr.google.com/scene-viewer/1.0?${
300
299
params
301
- . toString ( ) } #Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${
300
+ . toString ( ) + '&file=' + encodeURIComponent ( modelUrl . toString ( ) ) } #Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${
302
301
encodeURIComponent ( locationUrl . toString ( ) ) } ;end;`;
303
302
304
303
const undoHashChange = ( ) => {
You can’t perform that action at this time.
0 commit comments