mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 10:13:27 +01:00
Update ErrorLogViewController.swift
Signed-off-by: CelloSerenity <195480169+CelloSerenity@users.noreply.github.com>
This commit is contained in:
@@ -380,13 +380,8 @@ private extension ErrorLogViewController
|
|||||||
|
|
||||||
func searchFAQ(for loggedError: LoggedError)
|
func searchFAQ(for loggedError: LoggedError)
|
||||||
{
|
{
|
||||||
let baseURL = URL(string: "https://faq.altstore.io/getting-started/error-codes")!
|
let staticURL = URL(string: "https://docs.sidestore.io/docs/troubleshooting/error-codes")!
|
||||||
var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false)!
|
let safariViewController = SFSafariViewController(url: staticURL)
|
||||||
|
|
||||||
let query = [loggedError.domain, "\(loggedError.error.displayCode)"].joined(separator: "+")
|
|
||||||
components.queryItems = [URLQueryItem(name: "q", value: query)]
|
|
||||||
|
|
||||||
let safariViewController = SFSafariViewController(url: components.url ?? baseURL)
|
|
||||||
safariViewController.preferredControlTintColor = .altPrimary
|
safariViewController.preferredControlTintColor = .altPrimary
|
||||||
self.present(safariViewController, animated: true)
|
self.present(safariViewController, animated: true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user