From 98451f858bc823fdd2d382c6b9bd29bcad503720 Mon Sep 17 00:00:00 2001 From: Matin shafiei Date: Wed, 8 Mar 2023 13:43:58 +0800 Subject: [PATCH] Revert "NikitK/ binary.com - Options for Branding Removal (#7274)" This reverts commit e024755c4c4c3854262a8c2de41a3f107058ec3b. --- src/javascript/app/base/page.js | 7 ------- src/templates/_common/_layout/footer.jsx | 2 +- src/templates/_common/_layout/header.jsx | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/javascript/app/base/page.js b/src/javascript/app/base/page.js index 91b3f0784136b..75b9ecbb3a562 100644 --- a/src/javascript/app/base/page.js +++ b/src/javascript/app/base/page.js @@ -84,12 +84,6 @@ const Page = (() => { }; const onLoad = () => { - const host_name = $(location).attr('hostname'); - const removeBranding = () => { - if (host_name !== 'localhost' && host_name !== 'binary.com' && host_name !== 'staging.binary.com' && !host_name.includes('binary-static-git-fork')) { - $('.remove-branding').remove(); - } - }; if (State.get('is_loaded_by_pjax')) { Url.reset(); updateLinksURL('#content'); @@ -102,7 +96,6 @@ const Page = (() => { // InterviewPopup.onLoad(); } } - removeBranding(); Header.onLoad(); Footer.onLoad(); Language.setCookie(); diff --git a/src/templates/_common/_layout/footer.jsx b/src/templates/_common/_layout/footer.jsx index 21517605c9825..e55af0ccb7d30 100644 --- a/src/templates/_common/_layout/footer.jsx +++ b/src/templates/_common/_layout/footer.jsx @@ -38,7 +38,7 @@ const DialogNotification = () => ( ); const Footer = () => ( -