fix(iOS): inconsistent backgroundColor (#868)

* fix inconsistent backgroundColor

* remove redundant setBackgroundColor
This commit is contained in:
Wilson 2019-09-21 08:39:06 +08:00 committed by Thibault Malbranche
parent 48ba8d3a9e
commit d25b20ac03
1 changed files with 1 additions and 4 deletions

View File

@ -222,6 +222,7 @@ static NSURLCredential* clientAuthenticationCredential;
}
_webView = [[WKWebView alloc] initWithFrame:self.bounds configuration: wkWebViewConfig];
[self setBackgroundColor: _savedBackgroundColor];
_webView.scrollView.delegate = self;
_webView.UIDelegate = self;
_webView.navigationDelegate = self;
@ -838,8 +839,6 @@ static NSURLCredential* clientAuthenticationCredential;
}];
_onLoadingError(event);
}
[self setBackgroundColor: _savedBackgroundColor];
}
- (void)evaluateJS:(NSString *)js
@ -874,8 +873,6 @@ static NSURLCredential* clientAuthenticationCredential;
} else if (_onLoadingFinish) {
_onLoadingFinish([self baseEvent]);
}
[self setBackgroundColor: _savedBackgroundColor];
}
- (void)injectJavaScript:(NSString *)script