Skip to content

Commit c5bfdc1

Browse files
authored
Merge pull request #16 from edly-io/manan/EDLY-6550
Fixed scorm file duplication issue
2 parents d360d8a + 878cf5c commit c5bfdc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scormxblock/static/js/src/scormxblock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function ScormXBlock(runtime, element, settings) {
9595
};
9696

9797
$(function ($) {
98-
$('.scorm_object').attr('src', `${window.location.origin}${settings.scorm_path}`);
98+
$('.scorm_object', element).attr('src', `${window.location.origin}${settings.scorm_path}`);
9999

100100
if (settings.version_scorm == 'SCORM_12') {
101101
API = new SCORM_12_API();

0 commit comments

Comments
 (0)