可以在服务端配置部分客户端行为 目前只作了标题

This commit is contained in:
CrescentLeaf
2025-11-23 14:16:48 +08:00
parent e90e1911e8
commit f097a491ae
3 changed files with 11 additions and 1 deletions

View File

@@ -48,3 +48,6 @@ if ("serviceWorker" in navigator)
} catch (e) {
console.error(e)
}
const config = await fetch('config.json').then((re) => re.json())
config.title && (document.title = config.title)