Skip to content

Commit

Permalink
Navigator fix? part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexristinmaa committed Dec 8, 2024
1 parent c7951e2 commit 5f45280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alexanderristinmaa/app/(root)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"use client";

import dynamic from 'next/dynamic';
import { isDictKey } from '../[lang]/dictionaries'

import { redirect } from 'next/navigation';

export default function Root() {
const nav = navigator || {languages: ["en"]};
const nav = typeof navigator == "undefined" ? {languages: ["en"]} : navigator;

for(let language of nav.languages) {
let lang = language.split("-")[0];

Expand Down

0 comments on commit 5f45280

Please sign in to comment.