mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 06:54:33 +08:00
Stripping out protocol and query from asset url.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user