Skip to content

Commit

Permalink
Fixed a pottential issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantin Clerc committed Jan 14, 2024
1 parent 6d9d9e9 commit 1a91f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Geranium/GeraniumApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct GeraniumApp: App {
if let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
if (json["tag_name"] as? String)?.replacingOccurrences(of: "v", with: "").compare(version, options: .numeric) == .orderedDescending {
UIApplication.shared.confirmAlert(title: "Update available", body: "Geranium \(json["tag_name"] as? String ?? "update") is available, do you want to install it (you might need to enable Magnifier URL Scheme in TrollStore Settings)?", onOK: {
UIApplication.shared.open(URL(string: "apple-magnifier://install?url=https://github.com/c22dev/Geranium/releases/download/\(json["tag_name"] as? String ?? "1.0")/Geranium.tipa")!)
UIApplication.shared.open(URL(string: "apple-magnifier://install?url=https://github.com/c22dev/Geranium/releases/download/\(json["tag_name"] as? String ?? version)/Geranium.tipa")!)
}, noCancel: false)
}
}
Expand Down

0 comments on commit 1a91f45

Please sign in to comment.