mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix variable name to match attribute
This commit is contained in:
parent
ca0897edab
commit
228745f3ea
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ struct WebReaderContent {
|
|||
var styledContent: String {
|
||||
let savedAt = "new Date(\(item.savedAt.timeIntervalSince1970 * 1000)).toISOString()"
|
||||
let createdAt = "new Date(\(item.createdAt.timeIntervalSince1970 * 1000)).toISOString()"
|
||||
let publishAt = item.publishDate != nil ? "new Date(\(item.publishDate!.timeIntervalSince1970 * 1000)).toISOString()" : "undefined"
|
||||
let publishedAt = item.publishDate != nil ? "new Date(\(item.publishDate!.timeIntervalSince1970 * 1000)).toISOString()" : "undefined"
|
||||
|
||||
return """
|
||||
<!DOCTYPE html>
|
||||
|
|
@ -58,7 +58,7 @@ struct WebReaderContent {
|
|||
slug: "\(item.slug)",
|
||||
createdAt: \(createdAt),
|
||||
savedAt: \(savedAt),
|
||||
publishedAt: \(publishAt),
|
||||
publishedAt: \(publishedAt),
|
||||
url: `\(item.pageURLString)`,
|
||||
title: document.getElementById('_omnivore-title').innerHTML,
|
||||
content: document.getElementById('_omnivore-htmlContent').innerHTML,
|
||||
|
|
|
|||
Loading…
Reference in a new issue