mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
removed unused function
This commit is contained in:
@@ -366,16 +366,6 @@ export function waitForElm(selector: any) {
|
||||
});
|
||||
}
|
||||
|
||||
async function RunColourCheck(element: any) {
|
||||
if (
|
||||
typeof element.contentDocument.documentElement.childNodes[1] == 'undefined'
|
||||
) {
|
||||
await delay(1000);
|
||||
RunColourCheck(element);
|
||||
} else {
|
||||
element.contentDocument.documentElement.childNodes[1].style.color = 'white';
|
||||
}
|
||||
}
|
||||
export function GetCSSElement (file: string) {
|
||||
const cssFile = browser.runtime.getURL(file)
|
||||
const fileref = document.createElement('link')
|
||||
@@ -416,7 +406,6 @@ async function updateIframesWithDarkMode(): Promise<void> {
|
||||
try {
|
||||
const settings = await browser.storage.local.get('DarkMode') as SettingsState;
|
||||
if (settings.DarkMode) {
|
||||
//await delay(1);
|
||||
applyDarkModeToIframe(iframe, cssLink);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user