feat: update document title and favicon in main.tsx, remove isLocalhost check from OAuthPage for cleaner logic, and enhance overall user experience

This commit is contained in:
Supra4E8C
2025-12-11 00:17:52 +08:00
parent defa633f92
commit 95218676db
2 changed files with 16 additions and 8 deletions

View File

@@ -1,8 +1,23 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import '@/styles/global.scss';
import { INLINE_LOGO_JPEG } from '@/assets/logoInline';
import App from './App.tsx';
document.title = 'CLI Proxy API Management Center';
const faviconEl = document.querySelector<HTMLLinkElement>('link[rel="icon"]');
if (faviconEl) {
faviconEl.href = INLINE_LOGO_JPEG;
faviconEl.type = 'image/jpeg';
} else {
const newFavicon = document.createElement('link');
newFavicon.rel = 'icon';
newFavicon.type = 'image/jpeg';
newFavicon.href = INLINE_LOGO_JPEG;
document.head.appendChild(newFavicon);
}
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />