mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +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 { 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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user