mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 00:11:31 +00:00
handle case where Raven is not defined in pdf renderer
This commit is contained in:
parent
192918dda1
commit
a5900c4b9a
2 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ define [
|
|||
|
||||
timedOut = false
|
||||
timer = $timeout () =>
|
||||
Raven.captureMessage?('pdfng page load timed out after ' + @PAGE_LOAD_TIMEOUT + 'ms')
|
||||
Raven?.captureMessage?('pdfng page load timed out after ' + @PAGE_LOAD_TIMEOUT + 'ms')
|
||||
# console.log 'page load timed out', pagenum
|
||||
timedOut = true
|
||||
clearTimeout(spinTimer)
|
||||
|
@ -246,7 +246,7 @@ define [
|
|||
timedOut = false
|
||||
|
||||
timer = $timeout () =>
|
||||
Raven.captureMessage?('pdfng page render timed out after ' + @PAGE_RENDER_TIMEOUT + 'ms')
|
||||
Raven?.captureMessage?('pdfng page render timed out after ' + @PAGE_RENDER_TIMEOUT + 'ms')
|
||||
# console.log 'page render timed out', pagenum
|
||||
timedOut = true
|
||||
result.cancel()
|
||||
|
|
|
@ -38,7 +38,7 @@ define [
|
|||
loadedCallback: () ->
|
||||
$scope.$emit 'loaded'
|
||||
errorCallback: (error) ->
|
||||
Raven.captureMessage?('pdfng error ' + error)
|
||||
Raven?.captureMessage?('pdfng error ' + error)
|
||||
$scope.$emit 'pdf:error', error
|
||||
pageSizeChangeCallback: (pageNum, deltaH) ->
|
||||
$scope.$broadcast 'pdf:page:size-change', pageNum, deltaH
|
||||
|
|
Loading…
Reference in a new issue