mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-22 15:20:00 +01:00
Delay making the initial web view available to give it some time to load the DOM. Issue #1756
This commit is contained in:
parent
fcd7b88a62
commit
596575c0e8
@ -55,8 +55,10 @@ class WebViewProvider: NSObject, WKNavigationDelegate {
|
||||
if waitingForFirstLoad {
|
||||
waitingForFirstLoad = false
|
||||
if let completion = waitingCompletionHandler {
|
||||
completeRequest(completion: completion)
|
||||
waitingCompletionHandler = nil
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||
self.completeRequest(completion: completion)
|
||||
self.waitingCompletionHandler = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user