We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2953b01 + e57cf20 commit 5eaa109Copy full SHA for 5eaa109
src/lib/output/themes/default/layouts/default.tsx
@@ -101,7 +101,7 @@ export const defaultLayout = (
101
{/* settings, this appears to be a reasonable tradeoff between displaying page content without the */}
102
{/* navigation on exceptionally slow connections and not having the navigation obviously repaint. */}
103
<Raw html='document.body.style.display="none";' />
104
- <Raw html='setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)' />
+ <Raw html='setTimeout(() => typeof app!=="undefined"?app.showPage():document.body.style.removeProperty("display"),500)' />
105
</script>
106
{context.toolbar(props)}
107
0 commit comments