Skip to content

Commit efa6602

Browse files
committed
Do not explicitely create batch display when not configured
1 parent 332a5f1 commit efa6602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gui/HierarchyPainter.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)