Remove unnecessary dispatch
This commit is contained in:
parent
ac2506fd64
commit
94d60fbf34
|
@ -15,7 +15,7 @@ class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler {
|
|||
var currentArticle: Article?
|
||||
|
||||
func webView(_ webView: WKWebView, start urlSchemeTask: WKURLSchemeTask) {
|
||||
DispatchQueue.main.async {
|
||||
|
||||
guard let responseURL = urlSchemeTask.request.url, let iconImage = self.currentArticle?.iconImage() else {
|
||||
urlSchemeTask.didFailWithError(URLError(.fileDoesNotExist))
|
||||
return
|
||||
|
@ -36,7 +36,7 @@ class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler {
|
|||
urlSchemeTask.didReceive(data)
|
||||
urlSchemeTask.didFinish()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func webView(_ webView: WKWebView, stop urlSchemeTask: WKURLSchemeTask) {
|
||||
|
|
Loading…
Reference in New Issue