Fix wrong selector when removing custom style (fix #4557)

This commit is contained in:
the1812 2024-01-14 19:42:11 +08:00
parent 8ca54c2d9c
commit 71acfb2cf0

View File

@ -37,7 +37,7 @@ export const addImportantStyle = (text: string, name?: string) =>
export const removeStyle = (...names: string[]) => { export const removeStyle = (...names: string[]) => {
names.forEach(name => { names.forEach(name => {
const id = getDefaultStyleID(name) const id = getDefaultStyleID(name)
dqa(`#${id}`).forEach(it => it.remove()) document.getElementById(id)?.remove()
}) })
} }
/** /**