mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
AnisetteManager UserDefaults.standard from .shared
Signed-off-by: Joseph Mattello <mail@joemattiello.com>
This commit is contained in:
@@ -12,7 +12,7 @@ public struct AnisetteManager {
|
|||||||
|
|
||||||
/// User defined URL from Settings/UserDefaults
|
/// User defined URL from Settings/UserDefaults
|
||||||
static var userURL: String? {
|
static var userURL: String? {
|
||||||
guard let urlString = UserDefaults.shared.customAnisetteURL, !urlString.isEmpty else { return nil }
|
guard let urlString = UserDefaults.standard.customAnisetteURL, !urlString.isEmpty else { return nil }
|
||||||
// Test it's a valid URL
|
// Test it's a valid URL
|
||||||
guard URL(string: urlString) != nil else {
|
guard URL(string: urlString) != nil else {
|
||||||
ELOG("UserDefaults has invalid `customAnisetteURL`")
|
ELOG("UserDefaults has invalid `customAnisetteURL`")
|
||||||
|
|||||||
Reference in New Issue
Block a user