mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: undef window
This commit is contained in:
1 parent
352cb70830
commit
26ea06b091
1 file changed
+6
-1
@@ -211,7 +211,12 @@ export default function Navbar() {
|
|||||||
{REGIONS.map((region) => (
|
{REGIONS.map((region) => (
|
||||||
<LinkRadix
|
<LinkRadix
|
||||||
key={region}
|
key={region}
|
||||||
href={authURL(region, location.href)}
|
href={authURL(
|
||||||
|
region,
|
||||||
|
typeof window === 'undefined'
|
||||||
|
? undefined
|
||||||
|
: location.href,
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{UNLOCALIZED_REGION_NAMES[region]}
|
{UNLOCALIZED_REGION_NAMES[region]}
|
||||||
</LinkRadix>
|
</LinkRadix>
|
||||||
|
|||||||
Reference in new issue
Block a user