react-frame-component
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -91,4 +91,5 @@ 'use strict'; | ||
var doc = this.getDoc(); | ||
if (doc) { | ||
_reactDom2.default.unmountComponentAtNode(this.getMountTarget()); | ||
var mountTarget = this.getMountTarget(); | ||
if (doc && mountTarget) { | ||
_reactDom2.default.unmountComponentAtNode(mountTarget); | ||
} | ||
@@ -95,0 +96,0 @@ } |
{ | ||
"name": "react-frame-component", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "React component to wrap your application or component in an iFrame for encapsulation purposes", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -70,4 +70,5 @@ import React, { Component } from 'react'; | ||
const doc = this.getDoc(); | ||
if (doc) { | ||
ReactDOM.unmountComponentAtNode(this.getMountTarget()); | ||
const mountTarget = this.getMountTarget(); | ||
if (doc && mountTarget) { | ||
ReactDOM.unmountComponentAtNode(mountTarget); | ||
} | ||
@@ -74,0 +75,0 @@ } |
209022
690