Files
hfb_sys/frontend/public/site-bootstrap.js
T

25 lines
780 B
JavaScript

/* global document, URLSearchParams, window */
(() => {
const host = window.location.hostname.toLowerCase()
const params = new URLSearchParams(window.location.search)
const tenantHint = (params.get('tenant_code') || params.get('tenant') || '').toLowerCase()
const isJieyou =
host === 'zuhaox.com' ||
host.endsWith('.zuhaox.com') ||
host.startsWith('jieyou.') ||
tenantHint === 'jieyou'
if (!isJieyou) return
document.title = '解忧商行 - 官方租号平台'
const icon = document.getElementById('site-icon')
if (icon) {
icon.href = '/jieyou-favicon.svg'
icon.type = 'image/svg+xml'
}
const appleIcon = document.getElementById('site-apple-touch-icon')
if (appleIcon) {
appleIcon.href = '/jieyou-apple-touch-icon.png'
}
})()