Move account files to the documents directory and out of the shared container. Issue #1784

This commit is contained in:
Maurice Parker
2020-02-09 13:08:11 -08:00
parent 31b72221f8
commit 2ae021960b
23 changed files with 817 additions and 318 deletions

View File

@@ -519,7 +519,14 @@ private extension WebViewController {
func reloadArticleImage() {
guard let article = article else { return }
webView?.evaluateJavaScript("reloadArticleImage(\"\(article.articleID)\")")
var components = URLComponents()
components.scheme = ArticleRenderer.imageIconScheme
components.path = article.articleID
if let imageSrc = components.string {
webView?.evaluateJavaScript("reloadArticleImage(\"\(imageSrc)\")")
}
}
func imageWasClicked(body: String?) {