Merge pull request 'Fix hard coded path' (#13) from fix-path into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/13
file-group-page
bat 3 years ago
commit ac1093ac82

@ -47,7 +47,10 @@ export class Layout extends HTMLElement {
}
get path() {
return '/hello'
return new URL(
window.location.hash.slice(1) || '/',
window.location
).pathname
}
set editing(value) {

@ -9,7 +9,7 @@ async function initCache() {
'/components/header.js',
'/components/nav-menu.js',
'/components/page-menu.js',
])
]) //1
}
self.addEventListener("install", event => {

Loading…
Cancel
Save