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

Commit c2d309f

Browse files
authored
Revert "Meenu/redirect row users (#7177)" (#7185)
This reverts commit 2c54e0c.
1 parent c3144b3 commit c2d309f

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/javascript/app/common/redirect_banner.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const Cookies = require('js-cookie');
21
const DerivBanner = require('./deriv_banner');
32
const BinarySocket = require('../base/socket');
43
const State = require('../../_common/storage').State;
@@ -13,31 +12,14 @@ const RedirectBanner = (() => {
1312
const eu_country = isEuCountrySelected(Client.get('residence')) || isEuCountrySelected(State.getResponse('website_status.clients_country'));
1413
if (eu_country) {
1514
handleRedirect();
16-
} else {
17-
handleRedirectROW();
1815
}
1916

2017
});
2118

2219
};
2320

2421
const handleRedirect = () => {
25-
window.location.href = 'https://www.binary.bot/movetoderiv.html';
26-
27-
};
28-
29-
const handleRedirectROW = () => {
30-
31-
// Check if param have ?binary-com-lp
32-
const redirectBinary = new URLSearchParams(window.location.search);
33-
34-
if (redirectBinary.has('binary-com-lp') || Cookies.get('binary-com-show')){
35-
// Set cookie if they wanted to stay at binary.com and no redirect
36-
Cookies.set('binary-com-show', true, { expires: 7 });
37-
} else {
38-
window.location.replace('https://www.binary.bot/movetoderiv.html');
39-
}
40-
22+
window.location.href = '/move-to-deriv/';
4123
};
4224

4325
const loginOnLoad = () => {

0 commit comments

Comments
 (0)