修复客户平台图标加载

This commit is contained in:
winchen
2026-06-30 14:54:32 +07:00
parent 4d9ff68220
commit b97c23a241
9 changed files with 214 additions and 49 deletions
-1
View File
File diff suppressed because one or more lines are too long
+10 -4
View File
@@ -8769,13 +8769,19 @@ const emailRegisterEnabled = false;
return;
}
document.title = platformName.value || defaultPlatformName;
let icon = document.querySelector('link[rel="icon"]');
const iconUrl = platformLogo.value || defaultPlatformLogo;
setDocumentIcon('icon', iconUrl);
setDocumentIcon('shortcut icon', iconUrl);
setDocumentIcon('apple-touch-icon', iconUrl);
}
function setDocumentIcon(rel, href) {
let icon = document.querySelector(`link[rel="${rel}"]`);
if (!icon) {
icon = document.createElement('link');
icon.setAttribute('rel', 'icon');
icon.setAttribute('rel', rel);
document.head.appendChild(icon);
}
icon.setAttribute('href', platformLogo.value || defaultPlatformLogo);
icon.setAttribute('href', href);
}
function handleBrandLogoError() {
if (platformLogo.value !== defaultPlatformLogo) {
@@ -9308,4 +9314,4 @@ const emailRegisterEnabled = false;
/******/
/******/ })()
;
//# sourceMappingURL=app.baf00492.js.map
//# sourceMappingURL=app.ec5edb4d.js.map
+1
View File
File diff suppressed because one or more lines are too long