mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
changed image preview to lowercase it so .PNG will preview
This commit is contained in:
parent
895bb55677
commit
a2f564df8b
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ define [
|
|||
id: "fileViewArea"
|
||||
|
||||
render: () ->
|
||||
extension = @model.get("name").split(".").pop()
|
||||
extension = @model.get("name").split(".").pop().toLowerCase()
|
||||
image = (["jpg", "jpeg", "png", "gif", "eps", "pdf"].indexOf(extension) != -1)
|
||||
html = Mustache.to_html(@template, {
|
||||
name: @model.get("name")
|
||||
|
|
Loading…
Reference in a new issue