Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Survive a malformed address hash

emanuele-em25acfd423ea1
diff --git a/src/app.js b/src/app.js
index 3d277ad..7db88a1 100644
--- a/src/app.js
+++ b/src/app.js
@@ -208,7 +208,9 @@ function updateHash() {
}
function readHash() {
- const [slug, task] = decodeURIComponent(location.hash.slice(1)).split("/");
+ let hash = location.hash.slice(1);
+ try { hash = decodeURIComponent(hash); } catch {}
+ const [slug, task] = hash.split("/");
return { slug: slug || null, task: Number(task) || null };
}