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:
commit
5a65dd4fef
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue