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

Commit dd6c050

Browse files
committed
add path
1 parent e816e9c commit dd6c050

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
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`;

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