diff --git a/src/Tracy/Bar/assets/bar.js b/src/Tracy/Bar/assets/bar.js index 89ec5e5cc..374e4e859 100644 --- a/src/Tracy/Bar/assets/bar.js +++ b/src/Tracy/Bar/assets/bar.js @@ -412,10 +412,10 @@ class Debug let panel = Debug.panels[tab.rel]; if (panel.is(Panel.PEEK)) { delete Debug.panels[tab.rel]; - panel.elem.parentNode.removeChild(panel.elem); + panel.elem.remove(); } }); - row.parentNode.removeChild(row); + row.remove(); }); if (rows[0]) { // update content in first-row panels @@ -508,7 +508,7 @@ class Debug static loadScript(url) { if (Debug.scriptElem) { - Debug.scriptElem.parentNode.removeChild(Debug.scriptElem); + Debug.scriptElem.remove(); } Debug.scriptElem = document.createElement('script'); Debug.scriptElem.src = url; diff --git a/src/Tracy/BlueScreen/assets/bluescreen.js b/src/Tracy/BlueScreen/assets/bluescreen.js index e0a2f9df3..577c605e5 100644 --- a/src/Tracy/BlueScreen/assets/bluescreen.js +++ b/src/Tracy/BlueScreen/assets/bluescreen.js @@ -54,7 +54,7 @@ class BlueScreen static loadAjax(content) { let ajaxBs = document.getElementById('tracy-bs'); if (ajaxBs) { - ajaxBs.parentNode.removeChild(ajaxBs); + ajaxBs.remove(); } document.body.insertAdjacentHTML('beforeend', content); ajaxBs = document.getElementById('tracy-bs');