From 66e5a9e962fbe8af845001af0c30da7ae42cb017 Mon Sep 17 00:00:00 2001 From: rupato-deriv Date: Tue, 28 Mar 2023 11:02:02 +0800 Subject: [PATCH 1/2] fix: removed due date --- src/common/lang.js | 1 - src/indexPage/index.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/lang.js b/src/common/lang.js index dbf4e287b..e1fb2923a 100644 --- a/src/common/lang.js +++ b/src/common/lang.js @@ -72,7 +72,6 @@ export const load = () => { script.src = `${document.location.protocol}//cdn.crowdin.com/jipt/jipt.js`; $('body').append(script); } - console.log(lang, 'dnashjdnajksdnajksdnakjsdnksajnkjs'); init(lang); diff --git a/src/indexPage/index.js b/src/indexPage/index.js index 2d6f3f60e..8c59263db 100644 --- a/src/indexPage/index.js +++ b/src/indexPage/index.js @@ -23,6 +23,9 @@ const oneDay = 24; // eslint-disable-next-line one-var export const bannerToken = getStorage('setDueDateForBanner'); +if (bannerToken) { + remove('setDueDateForBanner'); +} // eslint-disable-next-line arrow-body-style export const expirationDate = () => { From b3f32dc8b3ebb03fa9d4a5d48ddbf0423888527e Mon Sep 17 00:00:00 2001 From: rupato-deriv Date: Tue, 28 Mar 2023 12:47:42 +0800 Subject: [PATCH 2/2] fix: for binary domain --- src/indexPage/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexPage/index.js b/src/indexPage/index.js index 8c59263db..3707ec85d 100644 --- a/src/indexPage/index.js +++ b/src/indexPage/index.js @@ -108,7 +108,7 @@ const renderElements = () => { document.getElementById('bot-main').classList.add('hidden'); return false; } - if (window.location.pathname.indexOf('/bot') === -1) { + if (isBinaryDomain) { render(isBinaryDomain && , document.getElementById('binary-logo')); render(