diff --git a/components/header.js b/components/header.js index 43fe0a3..e0c4058 100644 --- a/components/header.js +++ b/components/header.js @@ -104,7 +104,7 @@ export class Header extends HTMLElement { padding: 0 8px; } button.left-end { - padding-right: 12px; + padding-left: 12px; } button.right-end { padding-right: 12px; @@ -239,7 +239,7 @@ export class Header extends HTMLElement { ) localStorage.removeItem(this.path) dialog.close() - vlocation.hash = newPath + location.hash = newPath }) bGroup.addCancel(this.text.cancel, () => { dialog.close() @@ -263,7 +263,7 @@ export class Header extends HTMLElement { ) bGroup.addPrimary(this.text.delete, () => { localStorage.removeItem(this.path) - vlocation.hash = '/' + location.hash = '/' dialog.close() }) bGroup.addCancel(this.text.cancel, () => { @@ -315,7 +315,7 @@ export class Header extends HTMLElement { ) bGroup.addPrimary(this.text.createPage, () => { const newPath = this.encodePath(input.value) - vlocation.hash = newPath + location.hash = newPath dialog.close() }) bGroup.addCancel(this.text.cancel, () => { diff --git a/sw.js b/sw.js index ec22340..5be9c44 100644 --- a/sw.js +++ b/sw.js @@ -11,7 +11,7 @@ async function initCache() { '/components/dialog.js', '/forms/button-group.js', '/menu/dropdown.js', - ]) + ]) //1 } self.addEventListener("install", event => {