From 0dcaace2aa302f08ac57f532d35aee4987db8810 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Sun, 25 Feb 2024 18:06:52 -0600 Subject: [PATCH] stupid dumb patch because guh rammerhead --- src/components/ProxyRegistrar.astro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);