diff --git a/main/newscorm/scorm_api.php b/main/newscorm/scorm_api.php index e72cddbd84..c6b77b2318 100644 --- a/main/newscorm/scorm_api.php +++ b/main/newscorm/scorm_api.php @@ -825,10 +825,11 @@ function switch_item(current_item, next_item){ } //(4) refresh the audiorecorder if needed - if(document.getElementById('audiorecorder_id')){ - document.getElementById('audiorecorder_id').location.reload(); + if(frames['audiorecorder_name']){ + frames['audiorecorder_name'].location.reload(); } + return true; } //addEvent(window,'load',addListeners,false);