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