1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 20:40:49 +00:00

disable pdfjs fontface on Microsoft Edge

This commit is contained in:
Brian Gough 2016-09-21 13:58:14 +01:00
parent 2478a95bcb
commit de2e0478c6

View file

@ -12,7 +12,9 @@ define [
INDICATOR_DELAY2: 250 # time until the indicator starts animating
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
PDFJS.disableAutoFetch = true # prevent loading whole file
# PDFJS.disableStream