Fix pdf.js for IE 11.
This commit is contained in:
parent
a96fd6e6eb
commit
d31c2ce72d
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -27,18 +27,17 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||
<meta name="google" content="notranslate">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>PDF.js viewer</title>
|
||||
|
||||
|
||||
<% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ || request.env['HTTP_USER_AGENT'] =~ /Trident\// %>
|
||||
<%= stylesheet_link_tag "archive/pdf_es5/viewer.css" %>
|
||||
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
|
||||
<%= javascript_include_tag "archive/pdf_es5/pdf.js" %>
|
||||
<%= javascript_include_tag "archive/pdf_es5/viewer.js" %>
|
||||
<% else %>
|
||||
<%= stylesheet_link_tag "archive/pdf/viewer.css" %>
|
||||
|
||||
|
||||
<!-- This snippet is used in production (included from viewer.html) -->
|
||||
<link rel="resource" type="application/l10n" href="/assets/archive/locale/locale.properties">
|
||||
<%= javascript_include_tag "archive/pdf/pdf.js" %>
|
||||
|
||||
|
||||
<%= javascript_include_tag "archive/pdf/viewer.js" %>
|
||||
|
||||
<% end %>
|
||||
</head>
|
||||
|
||||
<body tabindex="1" class="loadingInProgress" data-url="<%=@url%>">
|
||||
|
|
Loading…
Reference in New Issue