From b21721d66ef85172c80aeab67cc73337b5d590e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cpavel-latyshou-binary=E2=80=9D?= <“pavel.latyshou@binary.com”> Date: Thu, 26 May 2022 15:34:18 +0300 Subject: [PATCH 1/2] fix: show langbar --- src/indexPage/index.js | 4 ++-- templates/index.mustache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/indexPage/index.js b/src/indexPage/index.js index 43ca6d388c..bee82f7f6a 100644 --- a/src/indexPage/index.js +++ b/src/indexPage/index.js @@ -16,7 +16,7 @@ import BotLanding from './react-components/bot-landing'; const today = new Date().getTime(); const expirationDate = today + 1000 * 60 * 60 * 24 * 21; -const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar']; +const elements = ['#notification-banner', '#main', '#footer', '#header']; const temp = getStorage('movetoderiv'); const renderBanner = () => { ReactDOM.render(, document.getElementById('movetoderiv')); @@ -62,13 +62,13 @@ const loginCheck = () => { if (endpoint()) return; moveToDeriv(); loadLang(); + $('.show-on-load').show(); if (temp) { if (getTokenList().length) { window.location.pathname = `${window.location.pathname.replace(/\/+$/, '')}/bot.html`; document.getElementById('bot-main').classList.remove('hidden'); } else { oauthLogin(() => { - $('.show-on-load').show(); $('.barspinner').hide(); renderElements(); GTM.init(); diff --git a/templates/index.mustache b/templates/index.mustache index ee941c0587..3db20e9260 100644 --- a/templates/index.mustache +++ b/templates/index.mustache @@ -18,12 +18,12 @@