mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 13:45:17 -05:00
Merge pull request #319 from sharelatex/fix-pdf-renderer-for-edge
disable pdfjs fontface on Microsoft Edge
This commit is contained in:
commit
fe1caa806a
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ define [
|
||||||
INDICATOR_DELAY2: 250 # time until the indicator starts animating
|
INDICATOR_DELAY2: 250 # time until the indicator starts animating
|
||||||
|
|
||||||
constructor: (@url, @options) ->
|
constructor: (@url, @options) ->
|
||||||
# PDFJS.disableFontFace = true # avoids repaints, uses worker more
|
if navigator.userAgent?.indexOf("Edge/") >= 0
|
||||||
|
# Microsoft Edge does not work well with font-face (Sept 2016)
|
||||||
|
PDFJS.disableFontFace = true
|
||||||
if @options.disableAutoFetch
|
if @options.disableAutoFetch
|
||||||
PDFJS.disableAutoFetch = true # prevent loading whole file
|
PDFJS.disableAutoFetch = true # prevent loading whole file
|
||||||
# PDFJS.disableStream
|
# PDFJS.disableStream
|
||||||
|
|
Loading…
Reference in a new issue