|
@@ -188,7 +188,12 @@ class ViewController: UITabBarController, UITabBarControllerDelegate, SettingMAB
|
|
if !isChangeProfile {
|
|
if !isChangeProfile {
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized().localized(), preferredStyle: .alert)
|
|
let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized().localized(), preferredStyle: .alert)
|
|
alert.addAction(UIAlertAction(title: "Cancel".localized(), style: .destructive, handler: {_ in
|
|
alert.addAction(UIAlertAction(title: "Cancel".localized(), style: .destructive, handler: {_ in
|
|
- ViewController.def?.thirdTab?.webView?.evaluateJavaScript("if(resumeAll){resumeAll();}")
|
|
|
|
|
|
+ if ViewController.def?.viewControllers?.firstIndex(of: (ViewController.def?.firstTab)!) == ViewController.def?.selectedIndex {
|
|
|
|
+ ViewController.def?.firstTab?.webView?.evaluateJavaScript("if(resumeAll){resumeAll();}")
|
|
|
|
+ }
|
|
|
|
+ if ViewController.def?.viewControllers?.firstIndex(of: (ViewController.def?.thirdTab)!) == ViewController.def?.selectedIndex {
|
|
|
|
+ ViewController.def?.thirdTab?.webView?.evaluateJavaScript("if(resumeAll){resumeAll();}")
|
|
|
|
+ }
|
|
}))
|
|
}))
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
ViewController.resetTabSelected()
|
|
ViewController.resetTabSelected()
|