Skip to content

Commit 1a91f45

Browse files
committed
Fixed a pottential issue
1 parent 6d9d9e9 commit 1a91f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Geranium/GeraniumApp.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct GeraniumApp: App {
2525
if let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
2626
if (json["tag_name"] as? String)?.replacingOccurrences(of: "v", with: "").compare(version, options: .numeric) == .orderedDescending {
2727
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: {
28-
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")!)
28+
UIApplication.shared.open(URL(string: "apple-magnifier://install?url=https://github.com/c22dev/Geranium/releases/download/\(json["tag_name"] as? String ?? version)/Geranium.tipa")!)
2929
}, noCancel: false)
3030
}
3131
}

0 commit comments

Comments
 (0)