diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee index 75aeca4dc3..1e4de8a6b5 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfRenderer.coffee @@ -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() diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index b0ffcfa406..7ef573354f 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -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