Merge branch 'master' of https://github.com/brentsimmons/NetNewsWire
This commit is contained in:
commit
407bd296db
|
@ -41,6 +41,11 @@ struct ArticleRenderer {
|
||||||
let renderer = ArticleRenderer(article: nil, style: style)
|
let renderer = ArticleRenderer(article: nil, style: style)
|
||||||
return renderer.noSelectionHTML
|
return renderer.noSelectionHTML
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static func noContentHTML(style: ArticleStyle) -> String {
|
||||||
|
let renderer = ArticleRenderer(article: nil, style: style)
|
||||||
|
return renderer.noContentHTML
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
@ -62,6 +67,10 @@ private extension ArticleRenderer {
|
||||||
return renderHTML(withBody: body)
|
return renderHTML(withBody: body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private var noContentHTML: String {
|
||||||
|
return renderHTML(withBody: "")
|
||||||
|
}
|
||||||
|
|
||||||
static var faviconImgTagCache = [Feed: String]()
|
static var faviconImgTagCache = [Feed: String]()
|
||||||
static var feedIconImgTagCache = [Feed: String]()
|
static var feedIconImgTagCache = [Feed: String]()
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@ class DetailViewControllerWebViewProvider {
|
||||||
webView.uiDelegate = nil
|
webView.uiDelegate = nil
|
||||||
webView.navigationDelegate = nil
|
webView.navigationDelegate = nil
|
||||||
|
|
||||||
let html = ArticleRenderer.noSelectionHTML(style: .defaultStyle)
|
let html = ArticleRenderer.noContentHTML(style: .defaultStyle)
|
||||||
webView.loadHTMLString(html, baseURL: nil)
|
webView.loadHTMLString(html, baseURL: nil)
|
||||||
|
|
||||||
queue.insert(webView, at: 0)
|
queue.insert(webView, at: 0)
|
||||||
|
|
Loading…
Reference in New Issue