Commit 84bcac92d7d3ece97193b725768364afda475468
tweak avatar render
mixmix committed on 10/6/2018, 8:18:22 AMParent: aec54b8b8e2dd57c99b4c87a19fc13c471acaaf0
Files changed
about/html/avatar.js | changed |
about/html/avatar.js | ||
---|---|---|
@@ -24,9 +24,9 @@ | ||
24 | 24 … | src |
25 | 25 … | }) |
26 | 26 … | ) |
27 | 27 … | avatar.classList.add('Avatar') |
28 | - avatar.style.setProperty('--avatar-size', Number.isNaN(size) ? size : `${size}rem`) | |
28 … | + avatar.style.setProperty('--avatar-size', isNaN(size) ? size : `${size}rem`) | |
29 | 29 … | |
30 | 30 … | return avatar |
31 | 31 … | } |
32 | 32 … | } |
Built with git-ssb-web