import React from 'react'; import ReactDOM from 'react-dom/client'; import { HashRouter, Route, Routes } from 'react-router-dom'; import { ErrorBoundary } from "react-error-boundary"; import './index.css'; import SettingsPage from './pages/SettingsPage.js'; import browser from 'webextension-polyfill'; import font from '@/resources/fonts/IconFamily.woff' import ThemeCreator from './pages/ThemeCreator'; import Store from './pages/Store'; browser.storage.local.get().then(({ DarkMode }) => { if (DarkMode) document.documentElement.classList.add('dark'); }) const style = document.createElement("style"); style.setAttribute("type", "text/css"); style.classList.add('iconFamily') style.innerHTML = ` @font-face { font-family: 'IconFamily'; src: url('${browser.runtime.getURL(font)}') format('woff'); font-weight: normal; font-style: normal; }`; document.head.appendChild(style); const root = ReactDOM.createRoot(document.getElementById('ExtensionPopup')!); root.render(

An error occurred 😭😭😭

Try clicking this button and see if it helps...

}> } /> } /> } /> } />
, );