Skip to content

Commit 9542fa3

Browse files
committed
console warn
1 parent 98ace54 commit 9542fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reflex/utils/codespaces.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ def redirect_script() -> str:
5252
if (params.has("redirect_to")) {{
5353
const redirect_to = new URL(params.get("redirect_to"));
5454
if (!sameHostnameDifferentPort(thisUrl, redirect_to)) {{
55+
console.warn("Reflex: Not redirecting to different hostname");
5556
return;
5657
}}
5758
if (!redirect_to.hostname.endsWith(".app.github.dev")) {{
59+
console.warn("Reflex: Not redirecting to non .app.github.dev hostname");
5860
return;
5961
}}
6062
a.href = redirect_to.href;

0 commit comments

Comments
 (0)