Skip to content

Commit

Permalink
fix: theme storage key
Browse files Browse the repository at this point in the history
  • Loading branch information
devrsi0n committed Oct 26, 2024
1 parent 0b3c2d8 commit 23bce44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/main/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const App = trpc.withTRPC(function App({
document.body.classList.add(inter.variable);
loadFlock();
}, []);

const isWidget = !!(pageProps as CommonWidgetProps).isWidget;
return (
<div className={inter.variable}>
<Head>
Expand All @@ -43,8 +43,8 @@ const App = trpc.withTRPC(function App({
attribute="class"
// Widget and app themes are different
storageKey={
(pageProps as CommonWidgetProps).isWidget
? 'chirpy.widget.theme'
isWidget
? `chirpy.widget.theme_${pageProps.projectId}`
: 'chirpy.theme'
}
>
Expand Down

0 comments on commit 23bce44

Please sign in to comment.