mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-22 00:39:43 +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)
|
||||
}
|
||||
}
|
||||
1
src/util/index.ts
Normal file
1
src/util/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './dom'
|
||||
Reference in New Issue
Block a user