fix(retina-img): Escape mask url, so it works with spaces

This commit is contained in:
Ben Gotow 2015-04-24 16:30:51 -07:00
parent 8d54773955
commit d161aa9cf9

View file

@ -57,7 +57,7 @@ class RetinaImg extends React.Component
style.zoom = if pathIsRetina then 0.5 else 1
if @props.colorfill
style.WebkitMaskImage = "url(#{path})"
style.WebkitMaskImage = "url('#{path}')"
style.objectPosition = "10000px"
className = "colorfill"