可以在服务端配置部分客户端行为 目前只作了标题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user