Stripping out protocol and query from asset url.

This commit is contained in:
David Jay committed 2016-11-14 20:02:01 -05:00
1 parent 16fa3e46f5
commit 14405b22aa
1 file changed
+2 -1
@@ -77,7 +77,8 @@ class CommentStream extends Component {
// Set up messaging between embedded Iframe an parent component
// Using recommended Pym init code which violates .eslint standards
const pym = new Pym.Child({polling: 100});
this.props.getStream(pym.parentUrl);
const path = /https?\:\/\/([^?]+)/.exec(pym.parentUrl)[1];
this.props.getStream(path);
}
render () {