Skip to content

Commit

Permalink
create copy of read only object
Browse files Browse the repository at this point in the history
  • Loading branch information
jigfox committed Aug 15, 2018
1 parent 2d156eb commit 8dff228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WKWebView.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class WKWebView extends React.Component {
WKWebViewManager.startLoadWithResult(!!shouldStart, event.nativeEvent.lockIdentifier);
});

let source = this.props.source || {};
let source = Object.assign({}, this.props.source || {});
if (typeof source == 'object') {
source.sendCookies = this.props.sendCookies;
source.customUserAgent =
Expand Down

0 comments on commit 8dff228

Please sign in to comment.