Skip to content

Commit

Permalink
Merge pull request #1431 from AGoblinKing/feature-multiplayer-redux
Browse files Browse the repository at this point in the history
Multiplayer!
  • Loading branch information
Adrian Biedrzycki authored Aug 19, 2021
2 parents 19131cd + 958b0af commit 439a854
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 2,529 deletions.
23 changes: 21 additions & 2 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export {
export const polygonVigilKey = `0937c004ab133135c86586b55ca212a6c9ecd224`;

export const storageHost = 'https://ipfs.exokit.org';
export const previewHost = 'https://preview.exokit.org'
export const previewHost = 'https://preview.exokit.org';
export const worldsHost = 'https://worlds.exokit.org';
export const accountsHost = `https://${chainName}sidechain-accounts.webaverse.com`;
export const contractsHost = 'https://contracts.webaverse.com';
Expand All @@ -40,4 +40,23 @@ export const tokensHost = `https://${chainName}all-tokens.webaverse.com`;
export const landHost = `https://${chainName}sidechain-land.webaverse.com`;
export const web3MainnetSidechainEndpoint = 'https://mainnetsidechain.exokit.org';
export const web3TestnetSidechainEndpoint = 'https://testnetsidechain.exokit.org';
export const homeScnUrl = `https://webaverse.github.io/street/street.scn`;
export const homeScnUrl = 'https://webaverse.github.io/street/street.scn';

// Setup dialog URL, use hash if on githubpreview and its an okay hash
const rGithub = /\.githubpreview\.dev$/;
const isGH = rGithub.test(window.location.hostname);

const hashHost =
/^[a-z][a-z0-9+\-.]*:\/\/([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])/.exec(
window.location.hash.slice(1),
);

const isOKHASH = hashHost && hashHost[2] && rGithub.test(hashHost[2]);

export const dialogUrl = isGH ?
isOKHASH ?
hashHost[2]
:
window.location.hostname.replace(/3000(\.githubpreview\.dev)$/, '4443$1')
:
'dialog.webaverse.com';
Loading

0 comments on commit 439a854

Please sign in to comment.