mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-09 09:40:14 +08:00
fix bug
This commit is contained in:
6
src/util/dom.ts
Normal file
6
src/util/dom.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function removeEl(selector: string) {
|
||||
if (selector) {
|
||||
const el = document.querySelector(selector)
|
||||
el?.parentNode?.removeChild(el)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user