Unified · Split
| @@ -28,7 +28,7 @@ withImage = (url, action) -> · 27 unmodified lines | |||
| 28 | currentSlug = doc.slug | 28 | currentSlug = doc.slug |
| 29 | return | 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 | bgUrl = styles['background-image'].slice(5, -2) | 33 | bgUrl = styles['background-image'].slice(5, -2) |
| 34 | sourceSize = if bgUrl.includes('@2x') then 32 else 16 | 34 | sourceSize = if bgUrl.includes('@2x') then 32 else 16 |