mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
Set anisette URL from plist value
This commit is contained in:
committed by
Joseph Mattello
parent
efabe7f536
commit
07d9a9f2c3
@@ -47,6 +47,7 @@ class LaunchViewController: RSTLaunchViewController
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(true)
|
||||
start_em_proxy(bind_addr: Consts.Proxy.serverURL)
|
||||
setAnisetteServer()
|
||||
|
||||
guard let pf = fetchPairingFile() else {
|
||||
displayError("Device pairing file not found.")
|
||||
@@ -83,6 +84,14 @@ class LaunchViewController: RSTLaunchViewController
|
||||
}
|
||||
}
|
||||
|
||||
func setAnisetteServer() {
|
||||
if let anisetteUrl = Bundle.main.object(forInfoDictionaryKey: "customAnisetteURL") as? String {
|
||||
UserDefaults.standard.set(anisetteUrl, forKey: "customAnisetteURL")
|
||||
} else {
|
||||
UserDefaults.standard.set("https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx", forKey: "customAnisetteURL")
|
||||
}
|
||||
}
|
||||
|
||||
func displayError(_ msg: String) {
|
||||
print(msg)
|
||||
// Create a new alert
|
||||
|
||||
Reference in New Issue
Block a user