Skip to content

Commit

Permalink
fix undefined webview props
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed Nov 30, 2020
1 parent 4ef2c67 commit 093af58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YoutubeIframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const YoutubeIframe = (props, ref) => {
onMessage={onWebMessage}
source={{
// partially allow source to be overridden
...webViewProps.source,
...webViewProps?.source,
method: 'GET',
html: MAIN_SCRIPT(
videoId,
Expand Down

0 comments on commit 093af58

Please sign in to comment.