This commit is contained in:
Vendicated 2026-09-29 19:41:03 +02:00
parent 7352aa8677
commit 7f0c10cc29
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "vencord", "name": "vencord",
"private": "true", "private": "true",
"version": "1.15.8", "version": "1.15.9",
"description": "The cutest Discord client mod", "description": "The cutest Discord client mod",
"homepage": "https://github.com/Vendicated/Vencord#readme", "homepage": "https://github.com/Vendicated/Vencord#readme",
"bugs": { "bugs": {

View file

@ -8,7 +8,7 @@ import { Devs } from "@utils/constants";
import { Logger } from "@utils/Logger"; import { Logger } from "@utils/Logger";
import definePlugin, { StartAt } from "@utils/types"; import definePlugin, { StartAt } from "@utils/types";
let observer: MutationObserver; let observer: MutationObserver | null;
function cleanSheet(sheet: CSSStyleSheet) { function cleanSheet(sheet: CSSStyleSheet) {
try { try {
@ -21,7 +21,8 @@ function cleanSheet(sheet: CSSStyleSheet) {
if ((rule as CSSStyleRule).selectorText?.includes(":has(.gameOption_")) { if ((rule as CSSStyleRule).selectorText?.includes(":has(.gameOption_")) {
new Logger("FixDiscordCss").info("Removed problematic CSS rule", rule.cssText); new Logger("FixDiscordCss").info("Removed problematic CSS rule", rule.cssText);
sheet.deleteRule(i); sheet.deleteRule(i);
observer.disconnect(); observer!.disconnect();
observer = null;
break; break;
} }
} }