page title = current parent's text; add favicon
Hunter
Wednesday, July 31st, 2024 at 9:15 AM
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 + <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🪆</text></svg>">
7 <title>todo</title>
8 <style>
9 body {
444 currentTask = taskPath[taskPath.length - 1];
445
446 updateBreadcrumbs(currentTask);
447 + updatePageTitle(currentTask);
448
449 const parentElement = createTaskElement(currentTask, true);
450 appContainer.appendChild(parentElement);
484 }
485 }
486
487 + function updatePageTitle(task) {
488 + document.title = task.text || 'todo';
489 + }
490 +
491 renderCurrentView();
492 });
493 </script>