diff --git a/scripts/index.js b/scripts/index.js index 2282f5b..6c5f46b 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -388,7 +388,7 @@ export class Instance { let result = await requestAPI("/instance", "DELETE", body); if (result.status === 200) { - this.parentNode.removeChild(this); + this.shadowElement.parentElement.removeChild(this.shadowElement); } else { alert(result.error);