Skip to content

Commit

Permalink
fixed mainnet autodetect
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiaszCudnik committed Jan 17, 2019
1 parent d935a79 commit 13274e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Expand Up @@ -108,7 +108,7 @@ export function isMainnet(domain?: string): boolean {
if (
location &&
domain &&
location.hostname.match(/`wallet[^.]*.${domain}`/)
location.hostname.match(new RegExp(`wallet[^.]*.${domain}`))
) {
return true;
}
Expand Down

0 comments on commit 13274e8

Please sign in to comment.