From 175c774e3d5eede1d9f502750fae7ae8a380a8a5 Mon Sep 17 00:00:00 2001
From: Elke Kreim <elke.kreim@hs-hannover.de>
Date: Wed, 12 Oct 2022 10:38:50 +0200
Subject: [PATCH] Add fix for issue #144

https://github.com/h5p/h5p-editor-php-library/pull/144/files
---
 scripts/h5peditor.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/h5peditor.js b/scripts/h5peditor.js
index 3affeec6..7dd597d3 100644
--- a/scripts/h5peditor.js
+++ b/scripts/h5peditor.js
@@ -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);
-- 
GitLab