mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
null check error in pdf view
This commit is contained in:
parent
6669884f44
commit
7d109ce77d
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ define [
|
||||||
scope.$on 'pdf:error', (event, error) ->
|
scope.$on 'pdf:error', (event, error) ->
|
||||||
return if error == 'cancelled'
|
return if error == 'cancelled'
|
||||||
# check if too many retries or file is missing
|
# check if too many retries or file is missing
|
||||||
if scope.loadCount > 3 || error.match(/^Missing PDF/i) || error.match(/^loading/i)
|
if scope.loadCount > 3 || error?.match(/^Missing PDF/i) || error?.match(/^loading/i)
|
||||||
scope.$emit 'pdf:error:display'
|
scope.$emit 'pdf:error:display'
|
||||||
return
|
return
|
||||||
if scope.loadSuccess
|
if scope.loadSuccess
|
||||||
|
|
Loading…
Reference in a new issue