Merge origin/modular into feature/responsive-layout-refactor.
Keep the responsive layout refactor while bringing in modular updates for support UI, pricing, categories, and config loading. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -107,6 +107,22 @@
|
||||
if (metaTheme) metaTheme.setAttribute('content', splashBg)
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user