mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-03 03:10:50 +08:00
26 lines
723 B
TypeScript
26 lines
723 B
TypeScript
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 />
|
|
</StrictMode>
|
|
);
|