mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
lowercase file extension when seeing preview
This commit is contained in:
parent
8f41c6dcb2
commit
895bb55677
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue