Disable font face in PDFs for IE 11 as well

This commit is contained in:
James Allen 2016-09-30 15:12:27 +01:00
parent 901e32a050
commit 1e1c4ec570

View file

@ -12,7 +12,7 @@ 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) ->
if navigator.userAgent?.indexOf("Edge/") >= 0 if navigator.userAgent?.indexOf("Edge/") >= 0 or navigator.userAgent?.indexOf("rv:11.0") >= 0 # IE 11
# Microsoft Edge does not work well with font-face (Sept 2016) # Microsoft Edge does not work well with font-face (Sept 2016)
PDFJS.disableFontFace = true PDFJS.disableFontFace = true
if @options.disableAutoFetch if @options.disableAutoFetch