mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
Appease codefactor
This commit is contained in:
+10
-11
@@ -50,16 +50,6 @@ async function init() {
|
||||
documentLoadStyle.textContent = documentLoadCSS;
|
||||
document.head.appendChild(documentLoadStyle);
|
||||
|
||||
function replaceIcons() {
|
||||
document
|
||||
.querySelectorAll<HTMLLinkElement>('link[rel*="icon"]')
|
||||
.forEach((link) => {
|
||||
if (link.href !== icon48) {
|
||||
link.href = icon48;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
replaceIcons();
|
||||
|
||||
const observer = new MutationObserver(() => {
|
||||
@@ -73,7 +63,6 @@ async function init() {
|
||||
attributeFilter: ["href", "rel"],
|
||||
});
|
||||
|
||||
|
||||
try {
|
||||
await initializeSettingsState();
|
||||
|
||||
@@ -102,3 +91,13 @@ async function init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function replaceIcons() {
|
||||
document
|
||||
.querySelectorAll<HTMLLinkElement>('link[rel*="icon"]')
|
||||
.forEach((link) => {
|
||||
if (link.href !== icon48) {
|
||||
link.href = icon48;
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user