Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PDF viewer failing on Edge (not based on Chromium) #297

Merged

Commits on Jan 28, 2021

  1. Fix PDF viewer failing on Edge (not based on Chromium)

    Since version v2.4.456 the PDF.js library is published as two different
    packages, a non-translated/non-polyfilled build for modern browsers and
    an ES5 compatible build for older browsers.
    
    The PDF viewer was using the build for modern browsers, so it did not
    work, for example, on Edge (the original version not based on Chromium).
    This has been changed to use the ES5 build instead for maximum
    compatibility.
    
    Unfortunately, the ES5 build requires allowing "unsafe-eval" in the
    iframe where the PDF.js library is loaded.
    
    Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
    danxuliu committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    cf41c80 View commit details
    Browse the repository at this point in the history