Prettier format pending files
This commit is contained in:
parent
10fb923b32
commit
393db05a70
1 changed files with 8 additions and 3 deletions
|
|
@ -343,10 +343,15 @@ export default function Login() {
|
|||
variant="outline"
|
||||
className="w-full hover-lift interactive-scale"
|
||||
onClick={() => {
|
||||
const apiBase = (import.meta as any)?.env?.VITE_API_BASE || window.location.origin;
|
||||
const apiBase =
|
||||
(import.meta as any)?.env?.VITE_API_BASE ||
|
||||
window.location.origin;
|
||||
const u = new URL("/api/roblox/oauth/start", apiBase);
|
||||
const next = new URLSearchParams(window.location.search).get("next");
|
||||
if (next && next.startsWith("/")) u.searchParams.set("state", next);
|
||||
const next = new URLSearchParams(
|
||||
window.location.search,
|
||||
).get("next");
|
||||
if (next && next.startsWith("/"))
|
||||
u.searchParams.set("state", next);
|
||||
window.location.href = u.toString();
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue