diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index df91581bde6fd2dd6d2d4ba30ad4752e1b7cb8ec..e9ff7f529c58672f789bac21b295b70cebb8757b 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -284,8 +284,8 @@ class UIRoot extends Component { qs.set("vr_entry_type", "daydream"); // Auto-choose 'daydream' after landing in chrome const intentUrl = - `intent://${location.host}${location.pathname || ""}?` + - `${qs.toString()}#Intent;scheme=${(location.protocol || "http:").replace(":", "")};` + + `intent://${location.host}${location.pathname}?` + + `${qs}#Intent;scheme=${location.protocol.replace(":", "")};` + `action=android.intent.action.VIEW;package=com.android.chrome;end;`; window.location = intentUrl;