mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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) => (
|
||||
<LinkRadix
|
||||
key={region}
|
||||
href={authURL(region, location.href)}
|
||||
href={authURL(
|
||||
region,
|
||||
typeof window === 'undefined'
|
||||
? undefined
|
||||
: location.href,
|
||||
)}
|
||||
>
|
||||
{UNLOCALIZED_REGION_NAMES[region]}
|
||||
</LinkRadix>
|
||||
|
||||
Reference in new issue
Block a user