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"
|
variant="outline"
|
||||||
className="w-full hover-lift interactive-scale"
|
className="w-full hover-lift interactive-scale"
|
||||||
onClick={() => {
|
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 u = new URL("/api/roblox/oauth/start", apiBase);
|
||||||
const next = new URLSearchParams(window.location.search).get("next");
|
const next = new URLSearchParams(
|
||||||
if (next && next.startsWith("/")) u.searchParams.set("state", next);
|
window.location.search,
|
||||||
|
).get("next");
|
||||||
|
if (next && next.startsWith("/"))
|
||||||
|
u.searchParams.set("state", next);
|
||||||
window.location.href = u.toString();
|
window.location.href = u.toString();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue