File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed 
lib/web_console/templates Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,14 @@ REPLConsole.prototype.install = function(container) {
418418    } 
419419  } 
420420
421+   var  observer  =  new  MutationObserver ( function ( mutationsList )  { 
422+     for  ( let  mutation  of  mutationsList )  { 
423+       if  ( mutation . type  ===  'childList'  &&  mutation . addedNodes . length  >  0 )  { 
424+         shiftConsoleActions ( ) ; 
425+       } 
426+     } 
427+   } ) ; 
428+ 
421429  // Initialize 
422430  this . container  =  container ; 
423431  this . outer  =  consoleOuter ; 
@@ -429,7 +437,7 @@ REPLConsole.prototype.install = function(container) {
429437
430438  findChild ( container ,  'resizer' ) . addEventListener ( 'mousedown' ,  resizeContainer ) ; 
431439  findChild ( consoleActions ,  'close-button' ) . addEventListener ( 'click' ,  closeContainer ) ; 
432-   consoleOuter . addEventListener ( 'DOMNodeInserted' ,   shiftConsoleActions ) ; 
440+   observer . observe ( consoleOuter ,   {   childList :  true ,   subtree :  true   } ) ; 
433441
434442  REPLConsole . currentSession  =  this ; 
435443} ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments