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

NikitK/ Amending the Github page for Binary Bot #3805

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: replace camelCase on sneake_case
  • Loading branch information
NikitK-deriv committed Jan 25, 2023
commit 0b73053e42b76fe2ba87b55ff837d5e69c842f5e
6 changes: 3 additions & 3 deletions src/botPage/view/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
getToken,
remove,
} from '../../common/utils/storageManager';
import { isBinaryDomain, isProduction, parseQueryString, serialize } from '../../common/utils/tools';
import { is_binary_domain, isProduction, parseQueryString, serialize } from '../../common/utils/tools';
import GTM from '../../common/gtm';
import {
getMissingBlocksTypes,
Expand Down Expand Up @@ -196,9 +196,9 @@ const updateLogo = token => {
$('.binary-logo-text > img').attr('src', '');
const currentLandingCompany = getLandingCompanyForToken(token);
if (currentLandingCompany === 'maltainvest') {
$('.binary-logo-text > img').attr('src', `${isBinaryDomain && './image/binary-type-logo.svg'}`);
$('.binary-logo-text > img').attr('src', `${is_binary_domain && './image/binary-type-logo.svg'}`);
} else {
$('.binary-logo-text > img').attr('src', `${isBinaryDomain && './image/binary-style/logo/type.svg'}`);
$('.binary-logo-text > img').attr('src', `${is_binary_domain && './image/binary-style/logo/type.svg'}`);
}
setTimeout(() => window.dispatchEvent(new Event('resize')));
};
Expand Down
4 changes: 2 additions & 2 deletions src/botPage/view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import View from './View';
import '../../common/binary-ui/dropdown';
import Elevio from '../../common/elevio';
import GTM from '../../common/gtm';
import { isBinaryDomain, isProduction } from '../../common/utils/tools';
import { is_binary_domain, isProduction } from '../../common/utils/tools';

$.ajaxSetup({
cache: false,
Expand Down Expand Up @@ -43,7 +43,7 @@ view.initPromise.then(() => {

window.onload = () => {
if (document.readyState === 'complete') {
if (!isBinaryDomain) {
if (!is_binary_domain) {
document.getElementsByClassName('dbot-banner eu-hide')[0].remove();
document.getElementById('logo').remove();
}
Expand Down
4 changes: 2 additions & 2 deletions src/common/utils/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const errLogger = (err, msg) => {
console.warn(errMsg);
};

export const isBinaryDomain =
document.location.hostname === 'localhost' ||
export const is_binary_domain =
document.location.hostname === 'localhos' ||
document.location.hostname === 'bot.binary.com' ||
document.location.hostname.includes('binary-bot-git-fork');
6 changes: 3 additions & 3 deletions src/indexPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import GTM from '../common/gtm';
import { load as loadLang, showBanner } from '../common/lang';
import { moveToDeriv } from '../common/utils/utility';
import { get as getStorage, set as setStorage, remove, getTokenList } from '../common/utils/storageManager';
import { createUrl, isBinaryDomain, parseQueryString, serialize } from '../common/utils/tools';
import { createUrl, is_binary_domain, parseQueryString, serialize } from '../common/utils/tools';
import '../common/binary-ui/dropdown';
import BotLanding from './react-components/bot-landing';
import BinaryLanding from './react-components/binary-landing';
Expand Down Expand Up @@ -111,7 +111,7 @@ const renderElements = () => {
return false;
}
if (window.location.pathname.indexOf('/bot') === -1) {
render(isBinaryDomain && <Logo />, document.getElementById('binary-logo'));
render(is_binary_domain && <Logo />, document.getElementById('binary-logo'));
render(<Footer />, document.getElementById('footer'));
isEuCountry().then(isEu => showHideEuElements(isEu));
showBanner();
Expand Down Expand Up @@ -160,7 +160,7 @@ loginCheck();

window.onload = () => {
if (document.readyState === 'complete') {
if (!isBinaryDomain) {
if (!is_binary_domain) {
document.getElementsByClassName('half-width bottom-image puzzle-logo')[0].remove();
document.getElementsByClassName('logo-wrapper')[0].remove();
}
Expand Down
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