mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
7 lines
153 B
TypeScript
7 lines
153 B
TypeScript
export function removeEl(selector: string) {
|
|
if (selector) {
|
|
const el = document.querySelector(selector)
|
|
el?.parentNode?.removeChild(el)
|
|
}
|
|
}
|