diff --git a/components/page.js b/components/page.js index a9bac7a..341a64f 100644 --- a/components/page.js +++ b/components/page.js @@ -135,7 +135,7 @@ export class Page extends HTMLElement { get body() { try { - return localStorage.getItem(this.path) + return localStorage.getItem(this.path) ?? '' } catch (err) { console.error(err) return '' diff --git a/index.html b/index.html index 6461ebd..946e66d 100644 --- a/index.html +++ b/index.html @@ -9,11 +9,10 @@ } html { box-sizing: border-box; - height: 100vh; - height: 100svh; } body { - min-height: 100vh; + height: 100vh; + height: 100svh; max-width: 800px; margin: 0 auto; } diff --git a/sw.js b/sw.js index 9230f77..11e9ecb 100644 --- a/sw.js +++ b/sw.js @@ -9,7 +9,7 @@ async function initCache() { '/components/header.js', '/components/nav-menu.js', '/components/page-menu.js', - ]) //4 + ]) //5 } self.addEventListener("install", event => {