v1.15.9
This commit is contained in:
parent
7352aa8677
commit
7f0c10cc29
2 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "vencord",
|
||||
"private": "true",
|
||||
"version": "1.15.8",
|
||||
"version": "1.15.9",
|
||||
"description": "The cutest Discord client mod",
|
||||
"homepage": "https://github.com/Vendicated/Vencord#readme",
|
||||
"bugs": {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { Devs } from "@utils/constants";
|
|||
import { Logger } from "@utils/Logger";
|
||||
import definePlugin, { StartAt } from "@utils/types";
|
||||
|
||||
let observer: MutationObserver;
|
||||
let observer: MutationObserver | null;
|
||||
|
||||
function cleanSheet(sheet: CSSStyleSheet) {
|
||||
try {
|
||||
|
|
@ -21,7 +21,8 @@ function cleanSheet(sheet: CSSStyleSheet) {
|
|||
if ((rule as CSSStyleRule).selectorText?.includes(":has(.gameOption_")) {
|
||||
new Logger("FixDiscordCss").info("Removed problematic CSS rule", rule.cssText);
|
||||
sheet.deleteRule(i);
|
||||
observer.disconnect();
|
||||
observer!.disconnect();
|
||||
observer = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue