Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Koster authored and Hubert Koster committed May 22, 2023
1 parent 7ee03e4 commit 230ead6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/components/global/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ export default function Header() {
useEffect(() => {
// remove branding on hosts that are not Deriv
const host = window.location.host;
let is_deriv_host = false;
domains.forEach(domain => {
const host_exists = host.indexOf(domain) === 0;
if (host_exists) {
is_deriv_host = host_exists;
}
});
const is_deriv_host = domains.includes(host);

if (!is_deriv_host) {
send('TOGGLE_BRANDING_OFF');
Expand Down
2 changes: 1 addition & 1 deletion src/data-stores/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const domains = [
'api.deriv.be',
'api.deriv.com',
'staging.deriv.be',
'localhost',
'localhost:3000',
'deriv-com-git-fork',
'deriv-developers-portal-git-fork',
'staging-api.deriv.com',
Expand Down

0 comments on commit 230ead6

Please sign in to comment.