From ac8f17ff72517c30a2599321e85a864abb585313 Mon Sep 17 00:00:00 2001 From: NohohonNohon Date: Mon, 25 May 2020 19:55:41 +0900 Subject: [PATCH] Fixed a bug that UserAgent may not be set. Fixed a bug that UserAgent may not be set. --- src/ios/CDVThemeableBrowser.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ios/CDVThemeableBrowser.m b/src/ios/CDVThemeableBrowser.m index 51eeef1e6..aedee0307 100644 --- a/src/ios/CDVThemeableBrowser.m +++ b/src/ios/CDVThemeableBrowser.m @@ -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;