diff --git a/previewers/betatest/js/rocrate.js b/previewers/betatest/js/rocrate.js index d4bbd47..3f0d579 100644 --- a/previewers/betatest/js/rocrate.js +++ b/previewers/betatest/js/rocrate.js @@ -17,9 +17,6 @@ function writeContentAndData(data, fileUrl, file, title, authors) { var s2 = document.createElement("script"); s2.type = "text/javascript"; s2.src = "js/ro-crate-dynamic.js"; + s2.text = `load();`; scripts.append(s2); - var s3 = document.createElement("script"); - s3.type = "text/javascript"; - s3.text = `dispatchEvent(new Event('load'));`; - scripts.append(s3); }