mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Delay making the initial web view available to give it some time to load the DOM. Issue #1756
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user