Skip to content

Commit 8dff228

Browse files
committed
create copy of read only object
1 parent 2d156eb commit 8dff228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WKWebView.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class WKWebView extends React.Component {
312312
WKWebViewManager.startLoadWithResult(!!shouldStart, event.nativeEvent.lockIdentifier);
313313
});
314314

315-
let source = this.props.source || {};
315+
let source = Object.assign({}, this.props.source || {});
316316
if (typeof source == 'object') {
317317
source.sendCookies = this.props.sendCookies;
318318
source.customUserAgent =

0 commit comments

Comments
 (0)