mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
fix font inside interface
This commit is contained in:
@@ -5,7 +5,10 @@ import './index.css';
|
|||||||
import { SettingsContextProvider } from './SettingsContext.js';
|
import { SettingsContextProvider } from './SettingsContext.js';
|
||||||
import SettingsPage from './SettingsPage.js';
|
import SettingsPage from './SettingsPage.js';
|
||||||
import browser from 'webextension-polyfill';
|
import browser from 'webextension-polyfill';
|
||||||
|
import font from 'url:../resources/fonts/IconFamily.woff'
|
||||||
|
|
||||||
import * as Sentry from "@sentry/react";
|
import * as Sentry from "@sentry/react";
|
||||||
|
|
||||||
browser.storage.local.get([ "telemetry" ]).then((telemetry) => {
|
browser.storage.local.get([ "telemetry" ]).then((telemetry) => {
|
||||||
if (telemetry.telemetry === true)
|
if (telemetry.telemetry === true)
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
@@ -24,14 +27,13 @@ browser.storage.local.get([ "telemetry" ]).then((telemetry) => {
|
|||||||
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
|
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
const fontURL = browser.runtime.getURL("fonts/IconFamily.woff");
|
|
||||||
|
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.setAttribute("type", "text/css");
|
style.setAttribute("type", "text/css");
|
||||||
style.innerHTML = `
|
style.innerHTML = `
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'IconFamily';
|
font-family: 'IconFamily';
|
||||||
src: url('${fontURL}') format('woff');
|
src: url('${font}') format('woff');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}`;
|
}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user