File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -412,10 +412,10 @@ class Debug
412412 let panel = Debug . panels [ tab . rel ] ;
413413 if ( panel . is ( Panel . PEEK ) ) {
414414 delete Debug . panels [ tab . rel ] ;
415- panel . elem . parentNode . removeChild ( panel . elem ) ;
415+ panel . elem . remove ( ) ;
416416 }
417417 } ) ;
418- row . parentNode . removeChild ( row ) ;
418+ row . remove ( ) ;
419419 } ) ;
420420
421421 if ( rows [ 0 ] ) { // update content in first-row panels
@@ -508,7 +508,7 @@ class Debug
508508
509509 static loadScript ( url ) {
510510 if ( Debug . scriptElem ) {
511- Debug . scriptElem . parentNode . removeChild ( Debug . scriptElem ) ;
511+ Debug . scriptElem . remove ( ) ;
512512 }
513513 Debug . scriptElem = document . createElement ( 'script' ) ;
514514 Debug . scriptElem . src = url ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class BlueScreen
5454 static loadAjax ( content ) {
5555 let ajaxBs = document . getElementById ( 'tracy-bs' ) ;
5656 if ( ajaxBs ) {
57- ajaxBs . parentNode . removeChild ( ajaxBs ) ;
57+ ajaxBs . remove ( ) ;
5858 }
5959 document . body . insertAdjacentHTML ( 'beforeend' , content ) ;
6060 ajaxBs = document . getElementById ( 'tracy-bs' ) ;
You can’t perform that action at this time.
0 commit comments