Skip to content

Commit

Permalink
Merge pull request #144 from otacke/JI-2981
Browse files Browse the repository at this point in the history
JI-2981 Fix js loading tracker not being cleaned
  • Loading branch information
icc authored Feb 25, 2022
2 parents 70dc2da + f712ee5 commit 80bd714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/h5peditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ ns.renderableCommonFields = {};
script.onload = function () {
H5PIntegration.loadedJs.push(src);
loading[src].forEach(cb => cb());
delete loading[src];
};
script.onerror = function (err) {
loading[src].forEach(cb => cb(err));
delete loading[src];
};
script.src = src;
document.head.appendChild(script);
Expand Down

0 comments on commit 80bd714

Please sign in to comment.