mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
fix(a11y): prevent disableImages FOUC
This commit is contained in:
+4
-1
@@ -144,7 +144,10 @@ window.A11yPanel = (() => {
|
||||
};
|
||||
|
||||
if (getSettings().disableImages) {
|
||||
FEATURES.disableImages.apply(true);
|
||||
new MutationObserver(() => {
|
||||
const img = document.getElementById("background-image");
|
||||
if (img) img.style.display = "none";
|
||||
}).observe(document, { childList: true, subtree: true });
|
||||
}
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
|
||||
Reference in New Issue
Block a user