Skip to content

Commit 453ce19

Browse files
committed
Fix broken bugs
1 parent 9d959ce commit 453ce19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/(browse)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cn from '@/lib/cn';
44
import { getIsInIframe } from '@/lib/isInIframe';
55
import { ReactNode } from 'react';
66

7-
export default function BrowseLayout({
7+
export default async function BrowseLayout({
88
children,
99
artists,
1010
years,
@@ -19,7 +19,7 @@ export default function BrowseLayout({
1919
songs: ReactNode;
2020
sources: ReactNode;
2121
}) {
22-
const isInIframe = getIsInIframe();
22+
const isInIframe = await getIsInIframe();
2323

2424
return (
2525
<Flex column className="h-screen">

src/components/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default async function NavBar() {
4242
<div className="navigation relative flex h-[50px] max-h-[50px] min-h-[50px] grid-cols-3 justify-between border-b-[1px] border-b-[#aeaeae] bg-white text-foreground lg:grid">
4343
<MainNavHeader
4444
artistSlugsToName={artistSlugsToName}
45-
indexOverride={isInIframe ? '/wsp' : ''}
45+
indexOverride={isInIframe ? '/wsp' : undefined}
4646
/>
4747
<div className="player min-w-[60%] flex-1 text-center lg:min-w-[44vw] xl:min-w-[38vw]">
4848
<Player artistSlugsToName={artistSlugsToName} />

0 commit comments

Comments
 (0)