Restore default template binding across browser sessions
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user