This commit is contained in:
2026-06-11 21:21:15 +03:30
parent 366157e026
commit 298f9a6055
13 changed files with 135 additions and 78 deletions
+16
View File
@@ -97,6 +97,22 @@
window.__APP_CONFIG__ = config
window.__CONFIG_READY__ = true
if (config?.user?.name_fa) {
document.title = config.user.name_fa
}
if (config?.user?.avatar) {
const faviconUrl = config.user.avatar
const existingIcons = document.querySelectorAll('link[rel*="icon"]')
existingIcons.forEach((icon) => icon.remove())
const link = document.createElement('link')
link.rel = 'icon'
link.type = 'image/png'
link.href = faviconUrl + '?v=' + Date.now()
document.head.appendChild(link)
}
// Resolve the promise
if (configResolve) {
configResolve(config)