Unified · Split
| @@ -28,7 +28,7 @@ withImage = (url, action) -> · 27 unmodified lines | ||
| 28 | 28 | currentSlug = doc.slug |
| 29 | 29 | return |
| 30 | 30 | |
| 31 | − styles = window.getComputedStyle($("._icon-#{doc.slug}"), ':before') | |
| 31 | + styles = window.getComputedStyle($("._icon-#{doc.slug.split('~')[0]}"), ':before') | |
| 32 | 32 | |
| 33 | 33 | bgUrl = styles['background-image'].slice(5, -2) |
| 34 | 34 | sourceSize = if bgUrl.includes('@2x') then 32 else 16 |