done
This commit is contained in:
parent
f6353b8f72
commit
cb79211592
|
@ -272,27 +272,21 @@ class InAppBrowserWebViewController: UIViewController, UIScrollViewDelegate, WKU
|
||||||
|
|
||||||
weak var weakSelf = self
|
weak var weakSelf = self
|
||||||
|
|
||||||
// Run later to avoid the "took a long time" log message.
|
if (weakSelf?.responds(to: #selector(getter: self.presentingViewController)))! {
|
||||||
DispatchQueue.main.async(execute: {() -> Void in
|
weakSelf?.presentingViewController?.dismiss(animated: true, completion: {() -> Void in
|
||||||
if (weakSelf?.responds(to: #selector(getter: self.presentingViewController)))! {
|
self.tmpWindow?.windowLevel = 0.0
|
||||||
weakSelf?.presentingViewController?.dismiss(animated: true, completion: {() -> Void in
|
UIApplication.shared.delegate?.window??.makeKeyAndVisible()
|
||||||
self.tmpWindow?.windowLevel = 0.0
|
})
|
||||||
UIApplication.shared.delegate?.window??.makeKeyAndVisible()
|
}
|
||||||
if (self.navigationDelegate != nil) {
|
else {
|
||||||
self.navigationDelegate?.browserExit(uuid: self.uuid)
|
weakSelf?.parent?.dismiss(animated: true, completion: {() -> Void in
|
||||||
}
|
self.tmpWindow?.windowLevel = 0.0
|
||||||
})
|
UIApplication.shared.delegate?.window??.makeKeyAndVisible()
|
||||||
}
|
})
|
||||||
else {
|
}
|
||||||
weakSelf?.parent?.dismiss(animated: true, completion: {() -> Void in
|
if (self.navigationDelegate != nil) {
|
||||||
self.tmpWindow?.windowLevel = 0.0
|
self.navigationDelegate?.browserExit(uuid: self.uuid)
|
||||||
UIApplication.shared.delegate?.window??.makeKeyAndVisible()
|
}
|
||||||
if (self.navigationDelegate != nil) {
|
|
||||||
self.navigationDelegate?.browserExit(uuid: self.uuid)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func goBack() {
|
@objc func goBack() {
|
||||||
|
|
Loading…
Reference in New Issue