mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
null check path when building a pdf download url
if there is an error just the domain is currently returned, empty string is better for us
This commit is contained in:
parent
ab1848d0ae
commit
cfaa8444db
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ define [
|
|||
|
||||
buildPdfDownloadUrl = (pdfDownloadDomain, path)->
|
||||
#we only download builds from compiles server for security reasons
|
||||
if pdfDownloadDomain? and path.indexOf("build") != -1
|
||||
if pdfDownloadDomain? and path? and path.indexOf("build") != -1
|
||||
return "#{pdfDownloadDomain}#{path}"
|
||||
else
|
||||
return path
|
||||
|
|
Loading…
Reference in a new issue