Skip to content

Commit

Permalink
Fixed a bug that UserAgent may not be set.
Browse files Browse the repository at this point in the history
Fixed a bug that UserAgent may not be set.
  • Loading branch information
NohohonNohon committed May 25, 2020
1 parent 2abc6e7 commit ac8f17f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ios/CDVThemeableBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,9 @@ - (void)createViews
self.webView.navigationDelegate = self;

self.webView.backgroundColor = [UIColor whiteColor];
if (_browserOptions.customUserAgent) {
self.webView.customUserAgent = _browserOptions.customUserAgent;
}

self.webView.clearsContextBeforeDrawing = YES;
self.webView.clipsToBounds = YES;
Expand Down

0 comments on commit ac8f17f

Please sign in to comment.