notify: forgot to join list, gets rid of commas
This commit is contained in:
parent
0913ca3da7
commit
9355ff3e01
3 changed files with 3 additions and 3 deletions
2
gog.js
2
gog.js
|
|
@ -127,7 +127,7 @@ try {
|
|||
} finally {
|
||||
await db.write(); // write out json db
|
||||
if (notify_games.filter(g => g.status != 'existed').length) { // don't notify if all were already claimed; TODO don't notify if killed?
|
||||
const list = notify_games.map(g => `- <a href="${g.url}">${g.title}</a> (${g.status})<br>`);
|
||||
const list = notify_games.map(g => `- <a href="${g.url}">${g.title}</a> (${g.status})`).join('<br>');
|
||||
notify(`gog:<br>${list}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue