自动显示当前对话标题!

This commit is contained in:
CrescentLeaf
2026-01-01 19:23:12 +08:00
parent 4e57a5f9e9
commit 722b06c018
2 changed files with 8 additions and 3 deletions

View File

@@ -36,6 +36,3 @@ const onResize = () => {
// deno-lint-ignore no-window no-window-prefix
window.addEventListener('resize', onResize)
onResize()
const config = await fetch('/config.json').then((re) => re.json())
config.title && (document.title = config.title)