File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3609,7 +3609,7 @@ class HierarchyPainter extends BasePainter {
36093609 delete this . disp ;
36103610 }
36113611
3612- if ( ( this . disp_kind === 'batch' ) || ! this . disp_frameid || isNodeJs ( ) ) {
3612+ if ( this . disp_kind === 'batch' ) {
36133613 const pr = isNodeJs ( ) ? _loadJSDOM ( ) : Promise . resolve ( null ) ;
36143614 return pr . then ( handle => {
36153615 this . disp = new BatchDisplay ( 1200 , 800 , handle ?. body ) ;
@@ -3618,7 +3618,7 @@ class HierarchyPainter extends BasePainter {
36183618 }
36193619
36203620 // check that we can found frame where drawing should be done
3621- if ( ! document . getElementById ( this . disp_frameid ) )
3621+ if ( ! this . disp_frameid || ! document . getElementById ( this . disp_frameid ) )
36223622 return null ;
36233623
36243624 if ( isBatchMode ( ) )
You can’t perform that action at this time.
0 commit comments