lowercase file extension when seeing preview

This commit is contained in:
Henry Oswald 2014-05-21 17:34:57 +01:00
parent 8f41c6dcb2
commit 895bb55677

View file

@ -7,7 +7,7 @@ define [
previewUrl: () ->
extension = @get("name").split(".").pop()
extension = @get("name").split(".").pop()?.toLowerCase()
needsConverting = (["eps", "pdf"].indexOf(extension) != -1)
queryString = if needsConverting then "?format=png" else ""
url = "#{@downloadUrl()}#{queryString}"