diff --git a/app.py b/app.py index af5bd19..0b84ac3 100644 --- a/app.py +++ b/app.py @@ -465,6 +465,9 @@ let docId = decodeURIComponent(location.pathname.replace(/(^\\/|\\/$)/g, "")); if (!docId) { location.replace("/" + rand() + "/"); } $("#padname").textContent = "/"+docId+"/"; +// Set client-side rather than server-side: the pad page is one shared HTML constant, +// so interpolating per request would mean rebuilding it on every hit. +document.title = docId + " - aukpad"; let ws, ver = 0, clientId = Math.random().toString(36).slice(2), debounce; let isProtected = false, isAuthed = false;