Skip to content

Commit 480d3e1

Browse files
remon-nashidMinishlink
authored andcommitted
Add title and onLoad attributes (#5)
* Add title and onLoad attributes * PR #5: applying review requests
1 parent 6669ce4 commit 480d3e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,18 @@ export default class extends Component {
9393
);
9494
}
9595

96-
const { source } = this.props;
96+
const { title, source, onLoad } = this.props;
9797
return (
9898
<iframe
99+
title={title}
99100
src={!source.method ? source.uri : undefined}
100101
srcDoc={this.state.html || source.html}
101102
style={{ width: '100%', height: '100%', border: 0 }}
102103
allowFullScreen
103104
allowpaymentrequest="true"
104105
frameBorder="0"
105106
seamless
107+
onLoad={onLoad}
106108
/>
107109
);
108110
}

0 commit comments

Comments
 (0)