feat: the assistant is its own full page at /assistant — no underlying app scrolling, back returns home; menu links to it
All checks were successful
Forgejo Android APK / Root app tests (push) Successful in 46s
Forgejo Android APK / Build signed APK (push) Successful in 2m9s

This commit is contained in:
Daniel 2026-09-09 13:36:30 +02:00
parent d74acfe31b
commit b115491858
2 changed files with 2 additions and 1 deletions

View file

@ -472,6 +472,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Restore last visited tab (saved by activateTab)
var lastTab = null;
try { lastTab = localStorage.getItem('ped_last_tab'); } catch(e) {}
if (typeof window !== 'undefined' && window.location && window.location.pathname === '/assistant') lastTab = 'assistant';
if (typeof window.activateTab === 'function') {
if (!lastTab || !window.activateTab(lastTab)) {
window.activateTab('encounter');

View file

@ -171,7 +171,7 @@ function getTemplatedIndex() {
// Prime once at boot so first request is fast
getTemplatedIndex();
app.get(['/', '/index.html'], function(req, res) {
app.get(['/', '/index.html', '/assistant'], function(req, res) {
var html = getTemplatedIndex();
if (!html) return res.sendFile(INDEX_PATH);
res.setHeader('Content-Type', 'text/html; charset=utf-8');