Skip to content

Commit d47c250

Browse files
authored
cloudfront url issue cleared (#2099)
1 parent b5678a4 commit d47c250

File tree

1 file changed

+1
-2
lines changed
  • packages/model-viewer/src/features

1 file changed

+1
-2
lines changed

packages/model-viewer/src/features/ar.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ configuration or device capabilities');
276276
locationUrl.hash = noArViewerSigil;
277277

278278
// modelUrl can contain title/link/sound etc.
279-
params.set('file', modelUrl.toString());
280279
params.set('mode', 'ar_only');
281280
if (!params.has('disable_occlusion')) {
282281
params.set('disable_occlusion', 'true');
@@ -298,7 +297,7 @@ configuration or device capabilities');
298297

299298
const intent = `intent://arvr.google.com/scene-viewer/1.0?${
300299
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=${
302301
encodeURIComponent(locationUrl.toString())};end;`;
303302

304303
const undoHashChange = () => {

0 commit comments

Comments
 (0)