added multiple custom backgrounds

This commit is contained in:
SethBurkart123
2023-10-20 06:37:52 +11:00
parent eaad32b39f
commit e0b4a29635
5 changed files with 99 additions and 10 deletions
+12
View File
@@ -6,6 +6,18 @@ 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>