From 480231b0c297b734e879ffc24ec8fb68fd1d6acc Mon Sep 17 00:00:00 2001 From: rvanasa Date: Tue, 28 Nov 2023 12:34:25 -0700 Subject: [PATCH] Adjust redirect logic --- src/redirect.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/redirect.ts b/src/redirect.ts index 1b12cdc..48894eb 100644 --- a/src/redirect.ts +++ b/src/redirect.ts @@ -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'; }