main
gardenapple 2 years ago
parent 504b5188e3
commit a03acb31d5
No known key found for this signature in database
GPG Key ID: CAF17E9ABE789268

@ -465,7 +465,7 @@ export default async function(
if (outputJSON) { if (outputJSON) {
const result = {}; const result = {};
if (wantedProperties) { if (wantedProperties) {
for (propertyName of wantedProperties) for (const propertyName of wantedProperties)
result[propertyName] = Properties.get(propertyName)(article, false, document); result[propertyName] = Properties.get(propertyName)(article, false, document);
} else { } else {
for (const [name, func] of Properties) { for (const [name, func] of Properties) {
@ -475,7 +475,7 @@ export default async function(
writeStream.write(JSON.stringify(result)); writeStream.write(JSON.stringify(result));
} else { } else {
if (wantedProperties) { if (wantedProperties) {
for (propertyName of wantedProperties) for (const propertyName of wantedProperties)
writeStream.write(Properties.get(propertyName)(article, true, document) + '\n'); writeStream.write(Properties.get(propertyName)(article, true, document) + '\n');
} else { } else {
writeStream.write(`<!DOCTYPE html> writeStream.write(`<!DOCTYPE html>

Loading…
Cancel
Save