mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 03:56:55 +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 {
|
if waitingForFirstLoad {
|
||||||
waitingForFirstLoad = false
|
waitingForFirstLoad = false
|
||||||
if let completion = waitingCompletionHandler {
|
if let completion = waitingCompletionHandler {
|
||||||
completeRequest(completion: completion)
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||||
waitingCompletionHandler = nil
|
self.completeRequest(completion: completion)
|
||||||
|
self.waitingCompletionHandler = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user