Reviewed-on: https://codeberg.org/macchiato/pages/pulls/20
@ -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 ''
@ -9,11 +9,10 @@
}
html {
box-sizing: border-box;
height: 100vh;
height: 100svh;
body {
min-height: 100vh;
max-width: 800px;
margin: 0 auto;
@ -9,7 +9,7 @@ async function initCache() {
'/components/header.js',
'/components/nav-menu.js',
'/components/page-menu.js',
]) //4
]) //5
self.addEventListener("install", event => {