mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 05:49:25 -04:00
ATS enabled
This commit is contained in:
parent
c33b000477
commit
8522bc9b9c
@ -57,7 +57,7 @@
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<false/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>kiwix.org</key>
|
||||
|
@ -126,6 +126,7 @@ class Network: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionD
|
||||
// MARK: - URLSessionTaskDelegate
|
||||
|
||||
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
|
||||
if let error = error {print("Download error: \(error.localizedDescription)")}
|
||||
guard let bookID = task.taskDescription else {return}
|
||||
progresses[bookID] = nil
|
||||
if progresses.count == 0 { timer?.invalidate() }
|
||||
|
Loading…
x
Reference in New Issue
Block a user