diff --git a/src/content.ts b/src/content.ts index 126cad0..41c743e 100644 --- a/src/content.ts +++ b/src/content.ts @@ -32,6 +32,8 @@ export class Content { } remove(element: HTMLElement) { - this.holder.removeChild(element) + if (this.holder.contains(element)) { + this.holder.removeChild(element) + } } }