From 2f48b814031a0423585b03cfa2d63183364afe4d Mon Sep 17 00:00:00 2001 From: Serjke Sorochinskiy Date: Fri, 30 Sep 2022 15:42:37 +0400 Subject: [PATCH] fix(ios): invoke onBrowserCreated when viewDidLoad is called with windowId --- ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift b/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift index ffcc6f7f..e4292fdc 100755 --- a/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift +++ b/ios/Classes/InAppBrowser/InAppBrowserWebViewController.swift @@ -116,6 +116,7 @@ public class InAppBrowserWebViewController: UIViewController, InAppBrowserDelega if let wId = windowId, let webViewTransport = InAppWebView.windowWebViews[wId] { webView.load(webViewTransport.request) + onBrowserCreated() } else { if #available(iOS 11.0, *) { if let contentBlockers = webView.options?.contentBlockers, contentBlockers.count > 0 {