Skip to content

Commit

Permalink
fix: remove rather than hide unused ORA view (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenk authored Nov 20, 2023
1 parent 6bbfc64 commit f65b103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openassessment/templates/openassessmentblock/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ <h4 class="step__title">
const isMobile = window.navigator.userAgent.includes("org.edx.mobile");
const mfe_views = ("{{mfe_views}}" === 'True') || isMobile;
const toHide = mfe_views ? 'ora-legacy-view' : 'ora-view';
document.getElementById(toHide).style.display = 'none';
const elementToRemove = document.getElementById(toHide);
elementToRemove.parentNode.removeChild(elementToRemove);
function loadResizeEvent() {
window.addEventListener('message', function(event) {
const iframe = document.getElementById('ora-iframe-{{xblock_id}}');
Expand Down

0 comments on commit f65b103

Please sign in to comment.