We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbb853 commit 8d57c48Copy full SHA for 8d57c48
assets/javascripts/lib/favicon.coffee
@@ -28,7 +28,7 @@ withImage = (url, action) ->
28
currentSlug = doc.slug
29
return
30
31
- styles = window.getComputedStyle($("._icon-#{doc.slug}"), ':before')
+ styles = window.getComputedStyle($("._icon-#{doc.slug.split('~')[0]}"), ':before')
32
33
bgUrl = styles['background-image'].slice(5, -2)
34
sourceSize = if bgUrl.includes('@2x') then 32 else 16
0 commit comments