mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
disable PDF.js autofetch only when used in new pdf viewer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user