Browse Source

open linkLoginHost = "https://nextcloud.com/install" on Safari

marinofaggiana 4 years ago
parent
commit
09662d1113
1 changed files with 6 additions and 0 deletions
  1. 6 0
      iOSClient/Brand/Intro/NCIntroViewController.swift

+ 6 - 0
iOSClient/Brand/Intro/NCIntroViewController.swift

@@ -172,6 +172,11 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
     }
     }
 
 
     @IBAction func host(_ sender: Any) {
     @IBAction func host(_ sender: Any) {
+        
+        guard let url = URL(string: NCBrandOptions.shared.linkLoginHost) else { return }
+        UIApplication.shared.open(url)
+        
+        /*
         let browserWebVC = UIStoryboard(name: "NCBrowserWeb", bundle: nil).instantiateInitialViewController() as? NCBrowserWeb
         let browserWebVC = UIStoryboard(name: "NCBrowserWeb", bundle: nil).instantiateInitialViewController() as? NCBrowserWeb
 
 
         browserWebVC?.urlBase = NCBrandOptions.shared.linkLoginHost
         browserWebVC?.urlBase = NCBrandOptions.shared.linkLoginHost
@@ -179,6 +184,7 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
         if let browserWebVC = browserWebVC {
         if let browserWebVC = browserWebVC {
             appDelegate.window?.rootViewController?.present(browserWebVC, animated: true)
             appDelegate.window?.rootViewController?.present(browserWebVC, animated: true)
         }
         }
+        */
     }
     }
 }
 }
 extension UINavigationController {
 extension UINavigationController {