From a2c7ef542401514efab75199d88a9e5c4123730b Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Sep 2018 18:19:33 +0100 Subject: [PATCH] Don't show custom server bit on matrix.org On mobile guide Part of https://github.com/vector-im/riot-web/issues/7378 --- src/vector/mobile_guide/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vector/mobile_guide/index.js b/src/vector/mobile_guide/index.js index b2d007ac..2c4785f3 100644 --- a/src/vector/mobile_guide/index.js +++ b/src/vector/mobile_guide/index.js @@ -13,6 +13,7 @@ async function initPage() { if (config && config['default_hs_url']) { hsUrl = config['default_hs_url']; } + if (hsUrl && !hsUrl.endsWith('/')) hsUrl += '/'; if (hsUrl && hsUrl !== 'https://matrix.org/') { document.getElementById('step2_container').style.display = 'block'; document.getElementById('hs_url').innerHTML = hsUrl;