fix update api

This commit is contained in:
leminlimez committed 2025-08-29 17:29:48 -04:00
1 parent 454c63d2ca
commit e288b1f2e7
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ struct Pocket_PosterApp: App {
// check for update
if !checkedForUpdate {
checkedForUpdate = true
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String, let url = URL(string: "https://api.github.com/leminlimez/Pocket-Poster/releases/latest") {
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String, let url = URL(string: "https://api.github.com/repos/leminlimez/Pocket-Poster/releases/latest") {
let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
guard let data = data else { return }