@@ -43,7 +43,7 @@ const checkifBotRunning = () => {
43
43
} ;
44
44
let Component , dynamicRoutePathanme ;
45
45
export const getComponent = ( ) => {
46
- if ( window . location . pathname === '/movetoderiv.html' ) {
46
+ if ( window . location . pathname === '/movetoderiv.html' || window . location . pathname === '/www/movetoderiv.html' ) {
47
47
Component = < BinaryLanding /> ;
48
48
dynamicRoutePathanme = 'movetoderiv' ;
49
49
} else {
@@ -79,7 +79,11 @@ export const setTimeOutBanner = route => {
79
79
} ;
80
80
81
81
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
+ ) {
83
87
getComponent ( ) ;
84
88
render ( Component , document . getElementById ( dynamicRoutePathanme ) ) ;
85
89
if ( dynamicRoutePathanme === 'bot-landing' ) {
@@ -136,7 +140,10 @@ const loginCheck = () => {
136
140
loadLang ( ) ;
137
141
}
138
142
$ ( '.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
+ ) {
140
147
if ( getTokenList ( ) . length ) {
141
148
if ( ! window . location . pathname . includes ( '/bot.html' ) ) {
142
149
window . location . pathname = `${ window . location . pathname . replace ( / \/ + $ / , '' ) } /bot.html` ;
0 commit comments