Skip to content

Commit

Permalink
Adjust redirect logic (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa authored Nov 28, 2023
1 parent 89249aa commit aa6a922
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import isEmbedded from './utils/isEmbedded';

// Redirect to custom domain
if (
(!isEmbedded &&
(window.location.hostname.endsWith('.icp0.io') ||
window.location.hostname.endsWith('.ic0.app'))) ||
window.location.hostname === 'embed.smartcontracts.org'
!isEmbedded &&
(window.location.hostname.endsWith('.icp0.io') ||
window.location.hostname.endsWith('.ic0.app') ||
window.location.hostname === 'embed.smartcontracts.org')
) {
window.location.hostname = 'embed.motoko.org';
}

0 comments on commit aa6a922

Please sign in to comment.