Skip to content

Commit

Permalink
Fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPeek committed Sep 9, 2022
1 parent efa1422 commit a83ff84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/assessmentResultsAudioView.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class AssessmentResultsAudioView extends ComponentView {
});

if (Adapt.audio && Adapt.course.get('_audio')._isEnabled && this.model.get('_audioAssessment') && this.model.get('_audioAssessment')._isEnabled) {
this.audioIsEnabled = true;
this.setupAudio();
} else {
this.audioIsEnabled = false;
}
}

Expand Down Expand Up @@ -78,6 +81,7 @@ class AssessmentResultsAudioView extends ComponentView {
}

onInview(event, visible, visiblePartX, visiblePartY) {
if (!this.audioIsEnabled) return;
if (!visible) return;

switch (visiblePartY) {
Expand Down

0 comments on commit a83ff84

Please sign in to comment.