disable PDF.js autofetch only when used in new pdf viewer

This commit is contained in:
Brian Gough 2014-12-01 14:35:58 +00:00
parent 25bebe1104
commit be91bc2754
2 changed files with 1 additions and 1 deletions

View file

@ -13,7 +13,6 @@ define [
) ->
if PDFJS?
PDFJS.workerSrc = window.pdfJsWorkerPath
PDFJS.disableAutoFetch = true
style = $("<style/>")
style.text(textLayerCss + "\n" + annotationsLayerCss + "\n" + highlightsLayerCss)

View file

@ -11,6 +11,7 @@ define [
@JOB_QUEUE_INTERVAL: 100
constructor: (@url, @options) ->
PDFJS.disableAutoFetch = true
@scale = @options.scale || 1
@document = $q.when(PDFJS.getDocument @url)
@navigateFn = @options.navigateFn