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

Commit 230ead6

Browse files
Hubert KosterHubert Koster
authored andcommitted
fixes
1 parent 7ee03e4 commit 230ead6

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/components/global/Header/Header.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ export default function Header() {
1919
useEffect(() => {
2020
// remove branding on hosts that are not Deriv
2121
const host = window.location.host;
22-
let is_deriv_host = false;
23-
domains.forEach(domain => {
24-
const host_exists = host.indexOf(domain) === 0;
25-
if (host_exists) {
26-
is_deriv_host = host_exists;
27-
}
28-
});
22+
const is_deriv_host = domains.includes(host);
2923

3024
if (!is_deriv_host) {
3125
send('TOGGLE_BRANDING_OFF');

src/data-stores/domains.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const domains = [
44
'api.deriv.be',
55
'api.deriv.com',
66
'staging.deriv.be',
7-
'localhost',
7+
'localhost:3000',
88
'deriv-com-git-fork',
99
'deriv-developers-portal-git-fork',
1010
'staging-api.deriv.com',

0 commit comments

Comments
 (0)