accessibility issue of preview pdf

This commit is contained in:
chihyux 2020-06-24 17:45:32 +08:00
parent b344e5ee61
commit 834a522029
1 changed files with 1 additions and 1 deletions

View File

@ -9,8 +9,8 @@
<% if @ext != "png" && @ext != "jpg" && @ext != "bmp" %>
<object data="<%=@url%>" height="100%" type="application/<%=@ext%>" width="100%">
<iframe height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%"></iframe>
<img alt="<%=@filename%>" src="<%=@url%>">
</object>
<embed height="100%" src="<%=@url%>" title="<%=@filename%>" width="100%" type="application/pdf"></embed>
<% else %>
<img alt="<%=@filename%>" src="<%=@url%>">
<% end %>