fix stylesheets loading incorrectly

This commit is contained in:
SethBurkart123
2023-12-18 07:50:03 +11:00
parent 64185044c7
commit f7976b7f79
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -25,6 +25,8 @@ import { enableCurrentTheme } from './seqta/ui/Themes';
import { delay } from "./seqta/utils/delay"; import { delay } from "./seqta/utils/delay";
import { SettingsState } from "./types/storage"; import { SettingsState } from "./types/storage";
import iframeCSS from "./css/iframe.scss?inline";
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({
@@ -426,8 +428,10 @@ function removeThemeTagsFromNotices () {
function CheckiFrameItems() { function CheckiFrameItems() {
// Injecting CSS File to the webpage to overwrite iFrame default CSS // Injecting CSS File to the webpage to overwrite iFrame default CSS
import('./css/iframe.scss'); const fileref = document.createElement('link')
let fileref = GetCSSElement('css/iframe.css'); fileref.setAttribute('rel', 'stylesheet')
fileref.setAttribute('type', 'text/css')
fileref.innerHTML = iframeCSS
const observer = new MutationObserver(function (mutations_list) { const observer = new MutationObserver(function (mutations_list) {
mutations_list.forEach(function (mutation) { mutations_list.forEach(function (mutation) {
+1
View File
@@ -69,6 +69,7 @@ table th {
html, p, div, span { html, p, div, span {
color: white !important; color: white !important;
background-color: #232323
} }
body { body {
background-color: #232323; background-color: #232323;