Skip to content

Commit

Permalink
Add title and onLoad attributes (#5)
Browse files Browse the repository at this point in the history
* Add title and onLoad attributes

* PR #5: applying review requests
  • Loading branch information
remon-nashid authored and Minishlink committed Oct 19, 2017
1 parent 6669ce4 commit 480d3e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,18 @@ export default class extends Component {
);
}

const { source } = this.props;
const { title, source, onLoad } = this.props;
return (
<iframe
title={title}
src={!source.method ? source.uri : undefined}
srcDoc={this.state.html || source.html}
style={{ width: '100%', height: '100%', border: 0 }}
allowFullScreen
allowpaymentrequest="true"
frameBorder="0"
seamless
onLoad={onLoad}
/>
);
}
Expand Down

0 comments on commit 480d3e1

Please sign in to comment.