updated now function to log the latest URL for each item
This commit is contained in:
parent
7d8c494058
commit
0a91a32359
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
|
@ -35,6 +35,7 @@ export default async function now() {
|
|||
try {
|
||||
const latest = await getLatest()
|
||||
console.log(`${id}: ${latest.text}`)
|
||||
console.log(`${id} URL: ${latest.url}`)
|
||||
if (latest && latest.text && latest.url) {
|
||||
newNow = newNow.replace(regex, (match, openTag, closeTag) => {
|
||||
// Replace href in opening tag
|
||||
|
|
|
|||
Loading…
Reference in a new issue