Skip to content

Commit

Permalink
chore: fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdiyeh Amirkhani authored and Mahdiyeh Amirkhani committed Jul 26, 2023
1 parent 1f02d13 commit 4c01b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/utils/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const getSocketURL = () => {
}

const loginid = window.localStorage.getItem('active_loginid') || active_loginid_from_url;
const is_real = loginid && !/^VRT|VRW/.test(loginid);
const is_real = loginid && !/^(VRT|VRW)/.test(loginid);

const server = is_real ? 'green' : 'blue';
const server_url = `${server}.binaryws.com`;
Expand Down

0 comments on commit 4c01b6d

Please sign in to comment.