Skip to content

Commit 8d57c48

Browse files
committed
Fix favicon when there are multiple versions
1 parent 5dbb853 commit 8d57c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/lib/favicon.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ withImage = (url, action) ->
2828
currentSlug = doc.slug
2929
return
3030

31-
styles = window.getComputedStyle($("._icon-#{doc.slug}"), ':before')
31+
styles = window.getComputedStyle($("._icon-#{doc.slug.split('~')[0]}"), ':before')
3232

3333
bgUrl = styles['background-image'].slice(5, -2)
3434
sourceSize = if bgUrl.includes('@2x') then 32 else 16

0 commit comments

Comments
 (0)