 }
 
 extension WebBrowserApp {
-    func appSchemeURL(forURL url: URL) -> URL? {
+    private func appSchemeURL(forURL url: URL) -> URL? {
         let scheme = url.scheme ?? ""
         var absoluteString = url.absoluteString
 

        return browser
    }

    static func open(url: URL) {
        browser.open(url: url)
    }

    static func set(defaultBrowser: WebBrowserApp) {
        defaults.set(defaultBrowser.rawValue, forKey: defaultBrowserKey)
    }

    static func clearDefaultBrowser() {
        defaults.set(nil, forKey: defaultBrowserKey)
    }

struct WebBrowserManager {
    private static let defaults = UserDefaults.standard
    private static let defaultBrowserKey = "DefaultBrowserKey"

    /**
        Returns the default browser the user has choosen to open any links in
        Rocket Chat. If none was choosen the default option is set to .inAppSafari.
     */
    static var browser: WebBrowserApp {
        guard
            let browserRaw = UserDefaults.standard.string(forKey: defaultBrowserKey),
