diff --git a/src/components/ProxyRegistrar.astro b/src/components/ProxyRegistrar.astro index af7571a..08989a8 100644 --- a/src/components/ProxyRegistrar.astro +++ b/src/components/ProxyRegistrar.astro @@ -41,7 +41,12 @@ // Now save it in a cookie that expires in 72 hours. document.cookie = `rammerhead-session=${sessionID}; max-age=${60 * 60 * 72}; path=/`; } - iframe.src = `https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`; + try { + iframe.src = `https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`; + } catch { + window.open(`https://aluu.xyz/${getCookie("rammerhead-session")}/${url}`); + } + } else { // Default to UV iframe.src = window.__uv$config.prefix + window.__uv$config.encodeUrl(url);