Restore default template binding across browser sessions

This commit is contained in:
2026-10-10 10:51:59 +08:00
parent 608229a497
commit 5db283c05a
20 changed files with 334 additions and 8 deletions
+6 -1
View File
@@ -5,6 +5,7 @@ import hashlib
import json
import logging
import os
from html import escape
from io import BytesIO
from pathlib import Path
from typing import Any, Callable, Literal
@@ -801,7 +802,11 @@ def create_app(
@app.get("/")
def index() -> HTMLResponse:
network.dismiss_for_boot()
return HTMLResponse(index_html)
return HTMLResponse(index_html.replace(
"</head>",
f'<meta name="device-boot-id" content="{escape(wifi_store.boot_id, quote=True)}"></head>',
1,
))
if ui_copy_store is not None:
@app.get("/api/dev/ui-copy")