diff --git a/src/pages/redirect-page.tsx b/src/pages/redirect-page.tsx index 50b4ce0d..c5e0d78b 100644 --- a/src/pages/redirect-page.tsx +++ b/src/pages/redirect-page.tsx @@ -9,6 +9,7 @@ import { getUiComponentLogger, uiLogger } from '../lib/logger.js' import { tellSwToReloadConfig } from '../lib/sw-comms.js' import { translateIpfsRedirectUrl } from '../lib/translate-ipfs-redirect-url.js' import './default-page-styles.css' +import LoadingIndicator from "../components/loading-indicator.jsx" const uiComponentLogger = getUiComponentLogger('redirect-page') const log = uiLogger.forComponent('redirect-page') @@ -25,9 +26,10 @@ const ConfigIframe: React.FC = () => { iframeSrc = url.href } else { - const portString = window.location.port === '' ? '' : `:${window.location.port}` - iframeSrc = `${window.location.protocol}//${parentDomain}${portString}/#/ipfs-sw-config@origin=${encodeURIComponent(window.location.origin)}` - } + + const portString = window.location.port === '' ? '' : `:${window.location.port}` + iframeSrc = `${window.location.protocol}//${parentDomain}${portString}/#/ipfs-sw-config@origin=${encodeURIComponent(window.location.origin)}` + } const [isVisible, setIsVisible] = useState(false) @@ -39,78 +41,167 @@ const ConfigIframe: React.FC = () => { }, [isServiceWorkerRegistered]) return ( -
-