Skip to content

Commit

Permalink
Force loading of UV
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Apr 10, 2018
1 parent f723dba commit ac4bee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/hyrax/base/_representative_media.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<% if presenter.representative_id.present? && presenter.representative_presenter.present? %>
<% if defined?(viewer) && viewer %>
<!-- Explicitly set flag to false to force loading of UV because sometimes
the flag retains the true value across page views probably due to turbolinks.
See https://github.com/samvera/hyrax/issues/2906 -->
<script>window.embedScriptIncluded = false;</script>
<%= PulUvRails::UniversalViewer.script_tag %>
<div class="viewer-wrapper">
<div class="uv viewer" data-uri="<%= main_app.polymorphic_path [main_app, :manifest, presenter], { locale: nil } %>"></div>
Expand Down

0 comments on commit ac4bee8

Please sign in to comment.