Skip to content

Commit 95ad3a1

Browse files
fix(ie): Do not use MutationObserver if it doesn't exist
1 parent 2142729 commit 95ad3a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/state/stateVisualizer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ export class StateVisualizer extends Component<IProps, IState> {
169169
this.deregisterFns.push(draggable(controlsEl, dragActions.move(this.el)));
170170
this.deregisterFns.push(draggable(visEl, dragActions.move(this.el)));
171171

172-
this.monitorResizeEvents();
172+
if (typeof MutationObserver === 'function') {
173+
this.monitorResizeEvents();
174+
}
173175

174176
if (this.props.minimizeAfter) {
175177
this.minimizeTimeout = setTimeout(this.minimize.bind(this), this.props.minimizeAfter);

0 commit comments

Comments
 (0)