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",
|
"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": {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue