better repl init + a bit of ssr for main repl

This commit is contained in:
Felix Roos 2023-12-29 00:55:14 +01:00
parent b0bdd09032
commit 9974311344
6 changed files with 44 additions and 46 deletions

View file

@ -23,7 +23,7 @@ export function Header({ context }) {
handleShuffle,
handleShare,
} = context;
const isEmbedded = embedded || window.location !== window.parent.location;
const isEmbedded = typeof window !== 'undefined' && (embedded || window.location !== window.parent.location);
const { isZen } = useSettings();
return (