mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-31 05:02:43 +00:00
disable PDF.js autofetch only when used in new pdf viewer
This commit is contained in:
parent
25bebe1104
commit
be91bc2754
2 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,6 @@ define [
|
|||
) ->
|
||||
if PDFJS?
|
||||
PDFJS.workerSrc = window.pdfJsWorkerPath
|
||||
PDFJS.disableAutoFetch = true
|
||||
|
||||
style = $("<style/>")
|
||||
style.text(textLayerCss + "\n" + annotationsLayerCss + "\n" + highlightsLayerCss)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue