git.shiar.nl
/
sc2-widget
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac9d22
)
ignore missing matches records in widget
master
v0.5
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 22 Aug 2019 01:20:07 +0000
(
03:20
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 22 Aug 2019 01:20:07 +0000
(
03:20
+0200)
Support previously generated data.
widget.html
patch
|
blob
|
history
diff --git
a/widget.html
b/widget.html
index 363f70ae24c6c7a35d3ba9ad631d092b005f8ab9..ccc9e78af0b2fbef82fbc963cac13fe736b1536b 100644
(file)
--- a/
widget.html
+++ b/
widget.html
@@
-58,7
+58,7
@@
`).join('')}
</ul>
<ul class=matches>
- ${
clan.matches
.splice(0, 3).map(match => `
+ ${
(clan.matches || [])
.splice(0, 3).map(match => `
<li data-members="${match.players}" class=${match.decision.toLowerCase()}>
${matchtime(new Date(match.date * 1000))} ${match.type}
</li>