File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -312,13 +312,11 @@ class WKWebView extends React.Component {
312312 WKWebViewManager . startLoadWithResult ( ! ! shouldStart , event . nativeEvent . lockIdentifier ) ;
313313 } ) ;
314314
315- let source = this . props . source || { } ;
316- if ( typeof source == 'object' ) {
317- source . sendCookies = this . props . sendCookies ;
318- source . customUserAgent =
319- this . props . customUserAgent || this . props . userAgent ;
320- source . useWKCookieStore = this . props . useWKCookieStore ;
321- }
315+ let source = Object . assign ( { } , this . props . source || { } , {
316+ sendCookies : this . props . sendCookies ,
317+ customUserAgent : this . props . customUserAgent || this . props . userAgent ,
318+ useWKCookieStore : this . props . useWKCookieStore ,
319+ } ) ;
322320
323321 if ( this . props . html ) {
324322 source . html = this . props . html ;
You can’t perform that action at this time.
0 commit comments