mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
fix stylesheets loading incorrectly
This commit is contained in:
+6
-2
@@ -25,6 +25,8 @@ import { enableCurrentTheme } from './seqta/ui/Themes';
|
||||
import { delay } from "./seqta/utils/delay";
|
||||
import { SettingsState } from "./types/storage";
|
||||
|
||||
import iframeCSS from "./css/iframe.scss?inline";
|
||||
|
||||
browser.storage.local.get([ "telemetry" ]).then((telemetry) => {
|
||||
if (telemetry.telemetry === true) {
|
||||
Sentry.init({
|
||||
@@ -426,8 +428,10 @@ function removeThemeTagsFromNotices () {
|
||||
|
||||
function CheckiFrameItems() {
|
||||
// Injecting CSS File to the webpage to overwrite iFrame default CSS
|
||||
import('./css/iframe.scss');
|
||||
let fileref = GetCSSElement('css/iframe.css');
|
||||
const fileref = document.createElement('link')
|
||||
fileref.setAttribute('rel', 'stylesheet')
|
||||
fileref.setAttribute('type', 'text/css')
|
||||
fileref.innerHTML = iframeCSS
|
||||
|
||||
const observer = new MutationObserver(function (mutations_list) {
|
||||
mutations_list.forEach(function (mutation) {
|
||||
|
||||
@@ -69,6 +69,7 @@ table th {
|
||||
|
||||
html, p, div, span {
|
||||
color: white !important;
|
||||
background-color: #232323
|
||||
}
|
||||
body {
|
||||
background-color: #232323;
|
||||
|
||||
Reference in New Issue
Block a user