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
412
412
let panel = Debug . panels [ tab . rel ] ;
413
413
if ( panel . is ( Panel . PEEK ) ) {
414
414
delete Debug . panels [ tab . rel ] ;
415
- panel . elem . parentNode . removeChild ( panel . elem ) ;
415
+ panel . elem . remove ( ) ;
416
416
}
417
417
} ) ;
418
- row . parentNode . removeChild ( row ) ;
418
+ row . remove ( ) ;
419
419
} ) ;
420
420
421
421
if ( rows [ 0 ] ) { // update content in first-row panels
@@ -508,7 +508,7 @@ class Debug
508
508
509
509
static loadScript ( url ) {
510
510
if ( Debug . scriptElem ) {
511
- Debug . scriptElem . parentNode . removeChild ( Debug . scriptElem ) ;
511
+ Debug . scriptElem . remove ( ) ;
512
512
}
513
513
Debug . scriptElem = document . createElement ( 'script' ) ;
514
514
Debug . scriptElem . src = url ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class BlueScreen
54
54
static loadAjax ( content ) {
55
55
let ajaxBs = document . getElementById ( 'tracy-bs' ) ;
56
56
if ( ajaxBs ) {
57
- ajaxBs . parentNode . removeChild ( ajaxBs ) ;
57
+ ajaxBs . remove ( ) ;
58
58
}
59
59
document . body . insertAdjacentHTML ( 'beforeend' , content ) ;
60
60
ajaxBs = document . getElementById ( 'tracy-bs' ) ;
You can’t perform that action at this time.
0 commit comments