mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: swap window undef check
This commit is contained in:
1 parent
e966c8df16
commit
4d462508bc
1 file changed
+3
-3
@@ -217,11 +217,11 @@ export default function Navbar() {
|
|||||||
<Dialog.Close key={region}>
|
<Dialog.Close key={region}>
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
typeof window === undefined
|
typeof window !== undefined
|
||||||
? undefined
|
? `https://api.worldoftanks.${region}/wot/auth/login/?application_id=${WARGAMING_APPLICATION_ID}&redirect_uri=${encodeURIComponent(
|
||||||
: `https://api.worldoftanks.${region}/wot/auth/login/?application_id=${WARGAMING_APPLICATION_ID}&redirect_uri=${encodeURIComponent(
|
|
||||||
`${location.origin}/auth/wargaming?return=${location.origin}${location.pathname}`,
|
`${location.origin}/auth/wargaming?return=${location.origin}${location.pathname}`,
|
||||||
)}`
|
)}`
|
||||||
|
: undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Button color="red">
|
<Button color="red">
|
||||||
|
|||||||
Reference in new issue
Block a user