From 71acfb2cf01edfe1137b11e4c25e65ff742d997b Mon Sep 17 00:00:00 2001 From: the1812 Date: Sun, 14 Jan 2024 19:42:11 +0800 Subject: [PATCH] Fix wrong selector when removing custom style (fix #4557) --- src/core/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/style.ts b/src/core/style.ts index 8fd4b9c70..dc6afb9a3 100644 --- a/src/core/style.ts +++ b/src/core/style.ts @@ -37,7 +37,7 @@ export const addImportantStyle = (text: string, name?: string) => export const removeStyle = (...names: string[]) => { names.forEach(name => { const id = getDefaultStyleID(name) - dqa(`#${id}`).forEach(it => it.remove()) + document.getElementById(id)?.remove() }) } /**