Files
BetterSEQTA-Plus/interface/src/main.tsx
T
2023-10-20 06:37:52 +11:00

28 lines
731 B
TypeScript

import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.js'
import './index.css'
import { SettingsContextProvider } from './SettingsContext.js';
const root = ReactDOM.createRoot(document.getElementById('ExtensionPopup')!);
const fontURL = chrome.runtime.getURL("fonts/IconFamily.woff");
const style = document.createElement("style");
style.setAttribute("type", "text/css");
style.innerHTML = `
@font-face {
font-family: 'IconFamily';
src: url('${fontURL}') format('woff');
font-weight: normal;
font-style: normal;
}`;
document.head.appendChild(style);
root.render(
<React.StrictMode>
<SettingsContextProvider>
<App />
</SettingsContextProvider>
</React.StrictMode>,
);