diff options
| author | Marin Ivanov <[email protected]> | 2024-08-21 03:31:41 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-21 03:31:41 +0300 |
| commit | 8354a7fae28e0bcc7a0eb1b6337f6da0d0769c94 (patch) | |
| tree | d57e9875407b723f6d7f6e2d27dfad0f74f22517 /ka.js | |
| parent | 193f4933a8a83ee191b5d3bb8b8b8237dc03bf7d (diff) | |
force app to be at /
Diffstat (limited to 'ka.js')
| -rw-r--r-- | ka.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ let {entries,fromEntries} = Object; mount = (root, app) => { function reload() { - let h = doc.location.hash || "#"; + let h = (location.pathname==='/')?(location.hash || "#"):"##"; root.replaceChildren(...app(h)); }; reload(); |
