react-iframe-comm
Advanced tools
Comparing version 0.1.1 to 1.0.0
{ | ||
"name": "react-iframe-comm", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"description": "A React component for communicating between a parent window and an iframe.", | ||
@@ -5,0 +5,0 @@ "main": "src/IframeComm.js", |
@@ -1,2 +0,2 @@ | ||
React Iframe Comm | ||
React iFrame communication | ||
============ | ||
@@ -3,0 +3,0 @@ |
@@ -18,5 +18,2 @@ import React, { Component, PropTypes } from "react"; | ||
componentWillReceiveProps(nextProps) { | ||
// console.log("componentWillReceiveProps"); | ||
// console.log("this", this.props.postMessageData); | ||
// console.log("next", nextProps.postMessageData); | ||
if (this.props.postMessageData !== nextProps.postMessageData) { | ||
@@ -28,4 +25,2 @@ // send a message if postMessageData changed | ||
onReceiveMessage(event) { | ||
// console.log("onReceiveMessage"); | ||
// console.log(event.data); | ||
const { handleReceiveMessage } = this.props; | ||
@@ -37,3 +32,2 @@ if (handleReceiveMessage) { | ||
onLoad() { | ||
// console.log("handleReady"); | ||
const { handleReady } = this.props; | ||
@@ -40,0 +34,0 @@ if (handleReady) { |
@@ -19,3 +19,3 @@ import React from "react"; | ||
src: "https://pbojinov.github.io/iframe-communication/iframe.html", | ||
// src: "http://127.0.0.1:8080/examples/iframe.html", | ||
// src: "http://127.0.0.1:8080/public/iframe.html", | ||
width: "100%", | ||
@@ -22,0 +22,0 @@ height: "175" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
2633207
9265