Merge pull request #1344 from perffecto/fix-ios-created-callback

fix(ios): invoke onBrowserCreated when viewDidLoad is called with win…
This commit is contained in:
Lorenzo Pichilli 2022-10-13 21:08:05 +02:00 committed by GitHub
commit 5a65dd4fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ public class InAppBrowserWebViewController: UIViewController, InAppBrowserDelega
if let wId = windowId, let webViewTransport = InAppWebView.windowWebViews[wId] { if let wId = windowId, let webViewTransport = InAppWebView.windowWebViews[wId] {
webView.load(webViewTransport.request) webView.load(webViewTransport.request)
onBrowserCreated()
} else { } else {
if #available(iOS 11.0, *) { if #available(iOS 11.0, *) {
if let contentBlockers = webView.options?.contentBlockers, contentBlockers.count > 0 { if let contentBlockers = webView.options?.contentBlockers, contentBlockers.count > 0 {