Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 17a5692

Browse files
committed
Merge branch 'row-move-to-deriv-landing-page' of https://github.com/mitra-deriv/binary-bot into row-move-to-deriv-landing-page
2 parents cb3b58a + dd6c050 commit 17a5692

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/indexPage/index.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const checkifBotRunning = () => {
4343
};
4444
let Component, dynamicRoutePathanme;
4545
export const getComponent = () => {
46-
if (window.location.pathname === '/movetoderiv.html') {
46+
if (window.location.pathname === '/movetoderiv.html' || window.location.pathname === '/www/movetoderiv.html') {
4747
Component = <BinaryLanding />;
4848
dynamicRoutePathanme = 'movetoderiv';
4949
} else {
@@ -79,7 +79,11 @@ export const setTimeOutBanner = route => {
7979
};
8080

8181
export const renderBanner = () => {
82-
if (window.location.href.indexOf('bot.html') === -1 || window.location.pathname === '/movetoderiv.html') {
82+
if (
83+
window.location.href.indexOf('bot.html') === -1 ||
84+
window.location.pathname === '/movetoderiv.html' ||
85+
window.location.pathname === '/www/movetoderiv.html'
86+
) {
8387
getComponent();
8488
render(Component, document.getElementById(dynamicRoutePathanme));
8589
if (dynamicRoutePathanme === 'bot-landing') {
@@ -136,7 +140,10 @@ const loginCheck = () => {
136140
loadLang();
137141
}
138142
$('.show-on-load').show();
139-
if (bannerToken && window.location.pathname !== '/movetoderiv.html') {
143+
if (
144+
(bannerToken && window.location.pathname !== '/movetoderiv.html') ||
145+
(bannerToken && window.location.pathname !== '/www/movetoderiv.html')
146+
) {
140147
if (getTokenList().length) {
141148
if (!window.location.pathname.includes('/bot.html')) {
142149
window.location.pathname = `${window.location.pathname.replace(/\/+$/, '')}/bot.html`;

src/indexPage/react-components/binary-landing/TakeDeriv.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const TakeDeriv = () => (
1111
<h1>{translate('Take Deriv with you')}</h1>
1212
<h2>{translate('Get the Deriv GO mobile app and trade on the go. Never miss golden opportunities again.')}</h2>
1313
<div>
14-
<img src="../image/qr-code.png" />
14+
<img src="/image/qr-code.png" />
1515
</div>
1616
<h3>{translate('Scan this QR code to download Deriv GO')}</h3>
1717
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy