From a93009a3dcedca327b126cc0300078219cf69669 Mon Sep 17 00:00:00 2001 From: bat Date: Mon, 27 Mar 2023 00:19:12 +0000 Subject: [PATCH] Fix old lines accidentally committed --- components/layout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/layout.js b/components/layout.js index 27c71f0..955fd7f 100644 --- a/components/layout.js +++ b/components/layout.js @@ -45,7 +45,10 @@ export class Layout extends HTMLElement { } get path() { - return '/hello' + return new URL( + window.location.hash.slice(1) || '/', + window.location + ).pathname } set editing(value) {