From 7294b9bb0046af20dbc0f2630426ccafab25f958 Mon Sep 17 00:00:00 2001
From: Marshall Quander <marshall@quander.me>
Date: Fri, 20 Jul 2018 15:27:43 -0700
Subject: [PATCH] Small simplifications

---
 src/react-components/ui-root.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js
index df91581bd..e9ff7f529 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;
-- 
GitLab