mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Moved page.html location information to ArticleRenderer
This commit is contained in:
1 parent
99be955ede
commit
b49aeca577
4 files changed
+18
-18
No files matched your search
@@ -38,11 +38,7 @@ class DetailViewControllerWebViewProvider: NSObject, WKNavigationDelegate {
|
||||
webView.navigationDelegate = self
|
||||
queue.insert(webView, at: 0)
|
||||
|
||||
let pageURL = Bundle.main.url(forResource: "page", withExtension: "html")!
|
||||
let page = try! String(contentsOf: pageURL)
|
||||
let baseURL = pageURL.deletingLastPathComponent()
|
||||
|
||||
webView.loadHTMLString(page, baseURL: baseURL)
|
||||
webView.loadHTMLString(ArticleRenderer.page.html, baseURL: ArticleRenderer.page.baseURL)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user